Changeset 10130 in orxonox.OLD for branches/heathaze/src/world_entities
- Timestamp:
- Dec 20, 2006, 4:57:20 PM (18 years ago)
- Location:
- branches/heathaze/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/heathaze/src/world_entities/Makefile.am
r10067 r10130 31 31 effects/explosion.cc \ 32 32 effects/billboard.cc \ 33 effects/heat_haze.cc\34 33 \ 35 34 \ … … 62 61 effects/explosion.h \ 63 62 effects/billboard.h \ 64 effects/heat_haze.cc\65 63 \ 66 64 \ -
branches/heathaze/src/world_entities/WorldEntities.am
r9869 r10130 82 82 world_entities/particles/particle_system.cc \ 83 83 world_entities/particles/sprite_particles.cc \ 84 world_entities/particles/heat_particles.cc \ 84 85 world_entities/particles/spark_particles.cc \ 85 86 world_entities/particles/model_particles.cc \ … … 184 185 particles/particle_system.h \ 185 186 particles/sprite_particles.h \ 187 particles/heat_particles.h \ 186 188 particles/spark_particles.h \ 187 189 particles/model_particles.h \ -
branches/heathaze/src/world_entities/particles/heat_particles.cc
r10127 r10130 16 16 #include "heat_particles.h" 17 17 18 ObjectListDefinition( ProtoWorldEntity);18 ObjectListDefinition(HeatParticles); 19 19 20 20 21 21 /** 22 * constructs and loads a ProtoWorldEntityfrom a XML-element22 * constructs and loads a HeatParticles from a XML-element 23 23 * @param root the XML-element to load from 24 24 */ 25 ProtoWorldEntity::ProtoWorldEntity(const TiXmlElement* root)25 HeatParticles::HeatParticles(const TiXmlElement* root) 26 26 { 27 this->registerObject(this, ProtoWorldEntity::_objectList);27 /* this->registerObject(this, HeatParticles::_objectList); 28 28 this->init(); 29 29 if (root != NULL) 30 this->loadParams(root); 30 this->loadParams(root);*/ 31 31 } 32 32 … … 35 35 * standard deconstructor 36 36 */ 37 ProtoWorldEntity::~ProtoWorldEntity()37 HeatParticles::~HeatParticles () 38 38 { 39 39 40 40 } 41 42 43 /**44 * initializes the ProtoWorldEntity45 * @todo change this to what you wish46 */47 void ProtoWorldEntity::init()48 {49 50 }51 52 53 /**54 * loads a ProtoWorldEntity from a XML-element55 * @param root the XML-element to load from56 * @todo make the class Loadable57 */58 void ProtoWorldEntity::loadParams(const TiXmlElement* root)59 {60 // all the clases this Entity is directly derived from must be called in this way, to load all settings.61 WorldEntity::loadParam(root);62 63 64 /**65 * @todo: make the class Loadable66 */67 }68 69 70 /**71 * advances the ProtoWorldEntity about time seconds72 * @param time the Time to step73 */74 ProtoWorldEntity::tick(float time)75 {76 77 }78 79 /**80 * draws this worldEntity81 */82 void ProtoWorldEntity::draw () const83 {84 glMatrixMode(GL_MODELVIEW);85 glPushMatrix();86 float matrix[4][4];87 88 /* translate */89 glTranslatef (this->getAbsCoor ().x,90 this->getAbsCoor ().y,91 this->getAbsCoor ().z);92 /* rotate */93 this->getAbsDir().matrix(matrix);94 glMultMatrixf((float*)matrix);95 96 if (model)97 model->draw();98 glPopMatrix();99 }100 101 102 /**103 *104 *105 */106 void ProtoWorldEntity::collidesWith (WorldEntity* entity, const Vector& location)107 {108 109 } -
branches/heathaze/src/world_entities/particles/heat_particles.h
r10127 r10130 7 7 #define _HEAT_PARTICLES_H 8 8 9 #include "world_entity.h"10 9 #include "sprite_particles.h" 11 10 … … 19 18 virtual ~HeatParticles(); 20 19 21 virtual void loadParams(const TiXmlElement* root);22 void init();23 24 virtual void draw() const;25 virtual void tick(float time);26 27 20 }; 28 21
Note: See TracChangeset
for help on using the changeset viewer.