Changeset 9235 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r9110 r9235 47 47 48 48 void loadModel(const std::string& fileName, float scaling = 1.0f, unsigned int modelNumber = 0, unsigned int obbTreeDepth = 4); 49 void loadModel2(const std::string& fileN, float scal = 1.0f){this->loadModel(fileN,scal,0,4);} 49 50 void setModel(Model* model, unsigned int modelNumber = 0); 50 51 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; … … 74 75 /** @returns a reference to the obb tree of this worldentity */ 75 76 inline BVTree* getOBBTree() const { return this->obbTree; }; 77 inline void setOBBTree(OBBTree* tree) { /*if( this->obbTree != NULL) delete this->obbTree;*/ this->obbTree = (BVTree*)tree; } 76 78 void drawBVTree(int depth, int drawMode) const; 77 inline AABB* getModelAABB() { return (this->aabbNode)?this->aabbNode->getAABB():NULL;}79 inline AABB* getModelAABB() const { return (this->aabbNode)?this->aabbNode->getAABB():NULL;} 78 80 79 81 /* --- Collision Reaction Block --- */ … … 101 103 virtual void hit(float damage, WorldEntity* killer); 102 104 103 virtual void destroy( );105 virtual void destroy( WorldEntity* killer ); 104 106 105 107 … … 198 200 int list_write; //!< entity's list 199 201 int list_handle; //!< handle for list changes 200 202 201 203 float health_write; 202 204 int health_handle; 203 205 204 206 float healthMax_write; 205 207 int healthMax_handle;
Note: See TracChangeset
for help on using the changeset viewer.