Changeset 6170 in orxonox.OLD for branches/christmas_branche/src/world_entities
- Timestamp:
- Dec 20, 2005, 12:59:06 AM (19 years ago)
- Location:
- branches/christmas_branche/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/Makefile.am
r6166 r6170 50 50 test_entity.h \ 51 51 space_ships/space_ship.h \ 52 creatures/md2_creature. h\52 creatures/md2_creature.cc \ 53 53 weapons/weapon_manager.h \ 54 54 weapons/weapon.h \ -
branches/christmas_branche/src/world_entities/creatures/md2_creature.cc
r6167 r6170 21 21 22 22 #include "objModel.h" 23 #include "md2Model.h" 23 24 #include "resource_manager.h" 24 25 … … 112 113 PRINTF(4)("SPACESHIP INIT\n"); 113 114 114 EventHandler::getInstance()->grabEvents(true);115 // EventHandler::getInstance()->grabEvents(true); 115 116 116 117 bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false; … … 253 254 { 254 255 256 if( likely(this->models[0] != NULL)) 257 ((MD2Model*)this->models[0])->tick(time); 258 259 255 260 // MD2Creature controlled movement 256 261 this->calculateVelocity(time); -
branches/christmas_branche/src/world_entities/world_entity.h
r6169 r6170 72 72 /** @returns a Reference to the Iterator */ 73 73 std::list<WorldEntity*>::iterator& getEntityIterator() { return this->objectListIterator; } 74 75 74 76 protected: 75 77 // CharacterAttributes* charAttr; //!< the character attributes of a world_entity 78 std::vector<Model*> models; //!< The model that should be loaded for this entity. 76 79 77 80 private: 78 std::vector<Model*> models; //!< The model that should be loaded for this entity.79 81 bool supportsLOD; //!< If this model format supports LOD (level of detail) this is true 80 82 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection
Note: See TracChangeset
for help on using the changeset viewer.