Changeset 5739 in orxonox.OLD for branches/world_entities/src
- Timestamp:
- Nov 23, 2005, 3:33:40 PM (19 years ago)
- Location:
- branches/world_entities/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/Makefile.am
r5679 r5739 27 27 weapons/ground_turret.cc \ 28 28 weapons/crosshair.cc \ 29 weapons/ground_turret.cc \ 29 30 power_ups/power_up.cc \ 30 31 power_ups/turret_power_up.cc \ -
branches/world_entities/src/world_entities/weapons/ground_turret.cc
r5680 r5739 15 15 16 16 #include "ground_turret.h" 17 #include "factory.h" 18 #include "model.h" 19 20 CREATE_FACTORY(GroundTurret, CL_GROUND_TURRET); 17 21 18 22 using namespace std; … … 47 51 { 48 52 this->setClassID(CL_GROUND_TURRET, "GroundTurret"); 53 this->loadModel("models/ground_turret.obj", 5); 49 54 50 55 } … … 59 64 { 60 65 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 61 // static_cast<WorldEntity*>(this)->loadParam(root);66 static_cast<NPC*>(this)->loadParams(root); 62 67 63 68 … … 72 77 * @param time the Time to step 73 78 */ 74 //GroundTurret::tick(float time)75 //{76 // 77 //}79 void GroundTurret::tick(float time) 80 { 81 82 } 78 83 79 84 /** … … 94 99 glMultMatrixf((float*)matrix); 95 100 96 //if (model)97 //model->draw();101 if (model) 102 model->draw(); 98 103 glPopMatrix(); 99 104 } -
branches/world_entities/src/world_entities/weapons/ground_turret.h
r5685 r5739 25 25 26 26 virtual void draw() const; 27 //virtual void tick(float time);27 virtual void tick(float time); 28 28 virtual void collidesWith (WorldEntity* entity, const Vector& location); 29 29
Note: See TracChangeset
for help on using the changeset viewer.