Changeset 4680 in orxonox.OLD for orxonox/trunk/src/world_entities/world_entity.h
- Timestamp:
- Jun 24, 2005, 12:12:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/world_entity.h
r4504 r4680 1 /*! 1 /*! 2 2 \file world_entity.h 3 3 \brief Definition of the basic WorldEntity … … 12 12 #include "factory.h" 13 13 #include "load_param.h" 14 #include "model.h" 14 15 15 16 //class CollisionCluster; 16 17 class CharacterAttributes; 17 class Model;18 18 class SoundEngine; 19 19 class SoundBuffer; … … 22 22 //! Basic class from which all interactive stuff in the world is derived from 23 23 class WorldEntity : public PNode 24 { 24 { 25 25 friend class World; 26 26 … … 33 33 34 34 //void setCollision (CollisionCluster* newhull); 35 35 36 36 //void addAbility(Ability* ability); 37 37 //void removeAbility(Ability* ability); 38 void setDrawable (bool bDraw); 38 void setDrawable (bool bDraw); 39 39 void setCharacterAttributes(CharacterAttributes* charAttr); 40 40 CharacterAttributes* getCharacterAttributes(); … … 47 47 virtual void command (Command* cmd); 48 48 49 /** \returns the Count of Faces on this WorldEntity */ 50 virtual unsigned int getFaceCount (void) const { if (this->model) return this->model->getFaceCount(); else return 0; }; 51 49 52 void processDraw (); 50 53 virtual void draw (); 51 54 virtual void tick (float time); 52 55 53 56 protected: 54 57 Model* model; //!< The model that should be loaded for this entity. 55 58 CharacterAttributes* charAttr; //!< the character attributes of a world_entity 56 59 57 60 private: 58 61 bool bCollide; //!< If it should be considered for the collisiontest.
Note: See TracChangeset
for help on using the changeset viewer.