Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 5, 2006, 4:39:02 PM (18 years ago)
Author:
bensch
Message:

merged the presentation back

File:
1 edited

Legend:

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

    r9110 r9235  
    4747
    4848  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);}
    4950  void setModel(Model* model, unsigned int modelNumber = 0);
    5051  Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };
     
    7475/** @returns a reference to the obb tree of this worldentity */
    7576  inline BVTree* getOBBTree() const { return this->obbTree; };
     77  inline void setOBBTree(OBBTree* tree) { /*if( this->obbTree != NULL) delete this->obbTree;*/ this->obbTree = (BVTree*)tree; }
    7678  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;}
    7880
    7981  /* --- Collision Reaction Block --- */
     
    101103  virtual void hit(float damage, WorldEntity* killer);
    102104
    103   virtual void destroy();
     105  virtual void destroy( WorldEntity* killer );
    104106
    105107
     
    198200  int                     list_write;                      //!< entity's list
    199201  int                     list_handle;                     //!< handle for list changes
    200  
     202
    201203  float                   health_write;
    202204  int                     health_handle;
    203  
     205
    204206  float                   healthMax_write;
    205207  int                     healthMax_handle;
Note: See TracChangeset for help on using the changeset viewer.