Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 9, 2005, 10:43:31 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: much cleaner Model Loading unloading, model is now private to WorldEntity (not protected)

File:
1 edited

Legend:

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

    r5511 r5994  
    2828
    2929  void loadParams(const TiXmlElement* root);
     30
    3031  void loadModel(const char* fileName, float scaling = 1.0f);
     32  void setModel(Model* model, unsigned int modelNumber = 0);
     33  Model* getModel(unsigned int modelNumber = 0) const { return this->model; };
     34
    3135  bool buildObbTree(unsigned int depth);
     36  /** @returns a reference to the obb tree of this worldentity */
     37  BVTree* getOBBTree() const { return this->obbTree; };
    3238
    3339  /** @param visibility if the Entity should be visible (been draw) */
     
    4652
    4753  void drawBVTree(unsigned int depth, int drawMode) const;
    48   /** @returns a reference to the obb tree of this worldentity */
    49   BVTree* getOBBTree() const { return this->obbTree; };
    5054
    5155  /* @returns the Count of Faces on this WorldEntity */
     
    5862
    5963 protected:
    60   Model*                  model;            //!< The model that should be loaded for this entity.
    61   BVTree*                 obbTree;          //!< this is the obb tree reference needed for collision detection
    6264  //  CharacterAttributes*    charAttr;         //!< the character attributes of a world_entity
    6365
    6466 private:
     67  Model*                  model;            //!< The model that should be loaded for this entity.
     68  BVTree*                 obbTree;          //!< this is the obb tree reference needed for collision detection
     69
    6570  bool                    bCollide;         //!< If it should be considered for the collisiontest.
    6671  bool                    bVisible;         //!< If it should be visible.
Note: See TracChangeset for help on using the changeset viewer.