Changeset 10067 in orxonox.OLD for branches/heathaze/src/world_entities/effects/heat_haze.cc
- Timestamp:
- Dec 13, 2006, 3:39:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/heathaze/src/world_entities/effects/heat_haze.cc
r9954 r10067 12 12 main-programmer: Silvan Nellen 13 13 */ 14 15 #include "heat_haze.h" 16 17 18 ObjectListDefinition(HeatHaze); 19 20 /** 21 * constructs and loads a HeatHaze from a XML-element 22 * @param root the XML-element to load from 23 */ 24 HeatHaze::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 */ 36 HeatHaze::~HeatHaze () 37 { 38 39 } 40 41 42 /** 43 * initializes the HeatHaze 44 * @todo change this to what you wish 45 */ 46 void 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 */ 57 void 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 */ 73 void HeatHaze::tick(float time) 74 { 75 76 } 77 78 /** 79 * draws this worldEntity 80 */ 81 void 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 */ 106 void HeatHaze::collidesWith (WorldEntity* entity, const Vector& location) 107 { 108 109 }
Note: See TracChangeset
for help on using the changeset viewer.