Changeset 8724 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Jun 22, 2006, 3:14:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r8490 r8724 16 16 #include <vector> 17 17 18 #include "aabb_tree_node.h" 19 18 20 #include "physics_interface.h" 19 21 … … 26 28 class BVTree; 27 29 class BoundingVolume; 30 class AABBTreeNode; 28 31 class Model; 29 32 class CollisionHandle; … … 58 61 virtual void postSpawn (); 59 62 virtual void leaveWorld (); 60 virtual void destroy() {};61 63 62 64 virtual void tick (float time); … … 73 75 inline BVTree* getOBBTree() const { return this->obbTree; }; 74 76 void drawBVTree(int depth, int drawMode) const; 77 inline AABB* getModelAABB() { return (this->aabbNode)?this->aabbNode->getAABB():NULL;} 75 78 76 79 /* --- Collision Reaction Block --- */ … … 90 93 91 94 CollisionHandle* getCollisionHandle(CREngine::CRType type) const { return this->collisionHandles[type]; } 95 96 virtual void hit(float damage); 97 virtual void destroy() {}; 92 98 93 99 … … 109 115 /** @returns a Reference to the Iterator */ 110 116 ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; } 111 112 /* --- Network Block --- */113 int writeState(const byte* data, int length, int sender);114 int readState(byte* data, int maxLength );115 117 116 118 /* --- Character Attribute Block --- */ … … 167 169 std::string modelLODName; //!< the name of the model lod file 168 170 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection 171 AABBTreeNode* aabbNode; //!< the tree node of the first level of a axis aligned bounding boxes tree: model dimension 169 172 170 173 bool bCollide; //!< If it should be considered for the collisiontest.
Note: See TracChangeset
for help on using the changeset viewer.