Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8724 in orxonox.OLD for trunk/src/world_entities/world_entity.h


Ignore:
Timestamp:
Jun 22, 2006, 3:14:58 PM (18 years ago)
Author:
bensch
Message:

merged the bsp-model-stuff back here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.h

    r8490 r8724  
    1616#include <vector>
    1717
     18#include "aabb_tree_node.h"
     19
    1820#include "physics_interface.h"
    1921
     
    2628class BVTree;
    2729class BoundingVolume;
     30class AABBTreeNode;
    2831class Model;
    2932class CollisionHandle;
     
    5861  virtual void postSpawn ();
    5962  virtual void leaveWorld ();
    60   virtual void destroy() {};
    6163
    6264  virtual void tick (float time);
     
    7375  inline BVTree* getOBBTree() const { return this->obbTree; };
    7476  void drawBVTree(int depth, int drawMode) const;
     77  inline AABB* getModelAABB() { return (this->aabbNode)?this->aabbNode->getAABB():NULL;}
    7578
    7679  /* --- Collision Reaction Block --- */
     
    9093
    9194  CollisionHandle* getCollisionHandle(CREngine::CRType type) const { return this->collisionHandles[type]; }
     95
     96  virtual void hit(float damage);
     97  virtual void destroy() {};
    9298
    9399
     
    109115  /** @returns a Reference to the Iterator */
    110116  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 );
    115117
    116118  /* --- Character Attribute Block --- */
     
    167169  std::string             modelLODName;       //!< the name of the model lod file
    168170  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
    169172
    170173  bool                    bCollide;           //!< If it should be considered for the collisiontest.
Note: See TracChangeset for help on using the changeset viewer.