Changeset 7711 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- May 18, 2006, 11:44:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r7460 r7711 2 2 * @file world_entity.h 3 3 * Definition of the basic WorldEntity 4 */4 */ 5 5 6 6 #ifndef _WORLD_ENTITY_H … … 35 35 virtual void loadParams(const TiXmlElement* root); 36 36 37 void loadModel(const std::string& fileName, float scaling = 1.0f, unsigned int modelNumber = 0 );37 void loadModel(const std::string& fileName, float scaling = 1.0f, unsigned int modelNumber = 0, unsigned int obbTreeDepth = 4); 38 38 void setModel(Model* model, unsigned int modelNumber = 0); 39 39 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; 40 40 41 41 inline void loadMD2Texture(const std::string& fileName) { this->md2TextureFileName = fileName; } 42 43 bool buildObbTree(unsigned int depth);44 /** @returns a reference to the obb tree of this worldentity */45 BVTree* getOBBTree() const { return this->obbTree; };46 42 47 43 /** @param visibility if the Entity should be visible (been draw) */ … … 57 53 58 54 virtual void tick (float time); 59 60 55 virtual void draw () const; 61 56 57 bool buildObbTree(int depth); 62 58 virtual void collidesWith (WorldEntity* entity, const Vector& location); 63 void drawBVTree(unsigned int depth, int drawMode) const; 64 59 /** @returns a reference to the obb tree of this worldentity */ 60 inline BVTree* getOBBTree() const { return this->obbTree; }; 61 void drawBVTree(int depth, int drawMode) const; 65 62 66 63 void debugWE() { this->debugEntity(); } … … 77 74 78 75 void toList(OM_LIST list); 76 79 77 80 78 /** @returns a Reference to the objectListNumber to set. */ … … 101 99 void setHealthMax(float healthMax); 102 100 void createHealthWidget(); 101 103 102 // CharacterAttributes* charAttr; //!< the character attributes of a world_entity 104 103 private:
Note: See TracChangeset
for help on using the changeset viewer.