Changeset 6911 in orxonox.OLD for branches/current_cd/src/world_entities/world_entity.h
- Timestamp:
- Jan 31, 2006, 7:12:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/world_entities/world_entity.h
r6910 r6911 39 39 void setModel(Model* model, unsigned int modelNumber = 0); 40 40 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; }; 41 bool buildObbTree(int depth); 41 42 42 43 inline void loadMD2Texture(const char* fileName) { this->md2TextureFileName = fileName; } 43 44 bool buildObbTree(unsigned int depth);45 /** @returns a reference to the obb tree of this worldentity */46 BVTree* getOBBTree() const { return this->obbTree; };47 44 48 45 /** @param visibility if the Entity should be visible (been draw) */ … … 51 48 inline bool isVisible() const { return this->bVisible; }; 52 49 53 54 55 50 virtual void postSpawn (); 56 51 virtual void leftWorld (); 57 52 58 53 virtual void tick (float time); 59 60 54 virtual void draw () const; 61 55 62 63 56 virtual void collidesWith (WorldEntity* entity, const Vector& location); 64 65 57 void drawBVTree(unsigned int depth, int drawMode) const; 66 58 /** @returns a reference to the obb tree of this worldentity */ 67 inline const BVTree* getOBBTree() const { return this->obbTree; }; 68 59 inline BVTree* getOBBTree() const { return this->obbTree; }; 69 60 70 61
Note: See TracChangeset
for help on using the changeset viewer.