Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5510 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Nov 8, 2005, 10:59:28 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: small cleanup in WorldEntity

File:
1 edited

Legend:

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

    r5501 r5510  
    2626
    2727  void loadParams(const TiXmlElement* root);
    28 
    29   /** @see loadModelWithScale(const char*, float) @param fileName the File to load */
    3028  void loadModel(const char* fileName, float scaling = 1.0f);
    31 
    3229  bool buildObbTree(unsigned int depth);
    33 
    34 
    35   //void addAbility(Ability* ability);
    36   //void removeAbility(Ability* ability);
    3730
    3831  /** @param visibility if the Entity should be visible (been draw) */
     
    4134  bool isVisible() const { return this->bVisible; };
    4235
    43 //  void setCharacterAttributes(CharacterAttributes* charAttr);
    44 //  CharacterAttributes* getCharacterAttributes();
    4536
    46   /** @returns a reference to the obb tree of this worldentity */
    47   BVTree* getOBBTree() { return this->obbTree; };
    4837
    4938  virtual void postSpawn ();
     
    5443  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    5544
     45  void drawBVTree(unsigned int depth, int drawMode) const;
     46  /** @returns a reference to the obb tree of this worldentity */
     47  BVTree* getOBBTree() const { return this->obbTree; };
    5648
    57   /** @returns the Count of Faces on this WorldEntity */
    58   virtual unsigned int getFaceCount () const { if (this->model) return this->model->getFaceCount(); else return 0; };
     49  /* @returns the Count of Faces on this WorldEntity */
     50  //unsigned int getFaceCount () const { return (this->model != NULL)?this->model->getFaceCount():0; };
     51  //  void addAbility(Ability* ability);
     52  //  void removeAbility(Ability* ability);
     53  //  void setCharacterAttributes(CharacterAttributes* charAttr);
     54  //  CharacterAttributes* getCharacterAttributes();
    5955
    60   void drawBVTree(unsigned int depth, int drawMode) const;
    6156
    6257 protected:
Note: See TracChangeset for help on using the changeset viewer.