Changeset 9869 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r9656 r9869 37 37 38 38 39 39 40 //! Basis-class all interactive stuff in the world is derived from 40 41 class WorldEntity : public PNode 41 42 { 43 ObjectListDeclaration(WorldEntity); 42 44 public: 43 45 WorldEntity(); … … 49 51 void loadModel2(const std::string& fileN, float scal = 1.0f){this->loadModel(fileN,scal,0,4);} 50 52 void setModel(Model* model, unsigned int modelNumber = 0); 51 53 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; 52 54 53 55 inline void loadMD2Texture(const std::string& fileName) { this->md2TextureFileName = fileName; } … … 73 75 74 76 75 /** @returns a reference to the obb tree of this worldentity */77 /** @returns a reference to the obb tree of this worldentity */ 76 78 inline BVTree* getOBBTree() const { return this->obbTree; }; 77 79 inline void setOBBTree(OBBTree* tree) { /*if( this->obbTree != NULL) delete this->obbTree;*/ this->obbTree = (BVTree*)tree; } … … 81 83 /* --- Collision Reaction Block --- */ 82 84 void subscribeReaction(CREngine::CRType type); 83 void subscribeReaction(CREngine::CRType type, longtarget1);84 void subscribeReaction(CREngine::CRType type, long target1, longtarget2);85 void subscribeReaction(CREngine::CRType type, long target1, long target2, longtarget3);86 void subscribeReaction(CREngine::CRType type, long target1, long target2, long target3, longtarget4);85 void subscribeReaction(CREngine::CRType type, const ClassID& target1); 86 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2); 87 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3); 88 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3, const ClassID& target4); 87 89 88 90 void unsubscribeReaction(CREngine::CRType type); … … 126 128 127 129 void hide() { if( this->objectListNumber != OM_DEAD) this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); } 128 130 void unhide() { if( this->objectListNumber != this->lastObjectListNumber) this->toList(this->lastObjectListNumber); } 129 131 130 132 131 133 /* --- Character Attribute Block --- */ 132 134 /** @returns the scaling of the model */ 133 135 float getScaling(){return this->scaling;} 134 136 /** @returns the damage dealt by this world entity */ 135 137 float getDamage() const { return this->damage; } … … 216 218 bool bOnGround; //!< true if this entity is standing on the ground 217 219 218 220 protected: 219 221 Vector velocity; //!< speed of the entity 220 222
Note: See TracChangeset
for help on using the changeset viewer.