Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/heathaze/src/world_entities/effects/heat_haze.cc @ 10067

Last change on this file since 10067 was 10067, checked in by snellen, 17 years ago

adapted the proto_world_entity.* to the classlistframework, start implementation of heathaze

File size: 1.8 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2006 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Silvan Nellen
13*/
14
15#include "heat_haze.h"
16
17
18ObjectListDefinition(HeatHaze);
19
20/**
21 * constructs and loads a HeatHaze from a XML-element
22 * @param root the XML-element to load from
23 */
24HeatHaze::HeatHaze(const TiXmlElement* root)
25{
26  this->registerObject(this, HeatHaze::_objectList);
27  this->init();
28  if (root != NULL)
29    this->loadParams(root);
30}
31
32
33/**
34 * standard deconstructor
35 */
36HeatHaze::~HeatHaze ()
37{
38
39}
40
41
42/**
43 * initializes the HeatHaze
44 * @todo change this to what you wish
45 */
46void HeatHaze::init()
47{
48
49}
50
51
52/**
53 * loads a HeatHaze from a XML-element
54 * @param root the XML-element to load from
55 * @todo make the class Loadable
56 */
57void HeatHaze::loadParams(const TiXmlElement* root)
58{
59  // all the clases this Entity is directly derived from must be called in this way, to load all settings.
60  WorldEntity::loadParam(root);
61
62
63  /**
64   * @todo: make the class Loadable
65   */
66}
67
68
69/**
70 * advances the HeatHaze about time seconds
71 * @param time the Time to step
72 */
73void HeatHaze::tick(float time)
74{
75
76}
77
78/**
79 * draws this worldEntity
80 */
81void HeatHaze::draw () const
82{
83  /*glMatrixMode(GL_MODELVIEW);
84  glPushMatrix();
85  float matrix[4][4];
86
87  // translate
88  glTranslatef (this->getAbsCoor ().x,
89                this->getAbsCoor ().y,
90                this->getAbsCoor ().z);
91  // rotate
92  this->getAbsDir().matrix(matrix);
93  glMultMatrixf((float*)matrix);
94
95  if (model)
96    model->draw();
97  glPopMatrix();
98 */
99}
100
101
102/**
103 *
104 *
105 */
106void HeatHaze::collidesWith (WorldEntity* entity, const Vector& location)
107{
108
109}
Note: See TracBrowser for help on using the repository browser.