Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 18, 2006, 11:44:21 PM (18 years ago)
Author:
patrick
Message:

trunk: merged the cd branche back to trunk

File:
1 edited

Legend:

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

    r7460 r7711  
    22 * @file world_entity.h
    33 * Definition of the basic WorldEntity
    4 */
     4 */
    55
    66#ifndef _WORLD_ENTITY_H
     
    3535  virtual void loadParams(const TiXmlElement* root);
    3636
    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);
    3838  void setModel(Model* model, unsigned int modelNumber = 0);
    3939  Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };
    4040
    4141  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; };
    4642
    4743  /** @param visibility if the Entity should be visible (been draw) */
     
    5753
    5854  virtual void tick (float time);
    59 
    6055  virtual void draw () const;
    6156
     57  bool buildObbTree(int depth);
    6258  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;
    6562
    6663  void debugWE() { this->debugEntity(); }
     
    7774
    7875  void toList(OM_LIST list);
     76
    7977
    8078  /** @returns a Reference to the objectListNumber to set. */
     
    10199  void setHealthMax(float healthMax);
    102100  void createHealthWidget();
     101
    103102  //  CharacterAttributes*    charAttr;         //!< the character attributes of a world_entity
    104103private:
Note: See TracChangeset for help on using the changeset viewer.