Changeset 10362 in orxonox.OLD for branches/playability.new/src/world_entities/world_entity.h
- Timestamp:
- Jan 25, 2007, 3:05:01 AM (17 years ago)
- Location:
- branches/playability.new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability.new
- Property svn:ignore
-
old new 10 10 autom4te.cache 11 11 aclocal.m4 12 tags 13 test.bmp 14 config.sub 15 config.guess 16 OrxonoxPlayability.kdevses 17 OrxonoxPlayability.kdevelop.pcs
-
- Property svn:ignore
-
branches/playability.new/src/world_entities/world_entity.h
r10314 r10362 25 25 // FORWARD DECLARATION 26 26 namespace OrxSound { class SoundBuffer; class SoundSource; } 27 namespace OrxGui { class GLGuiWidget; class GLGuiBar; class GLGuiEnergyWidget; };27 namespace OrxGui { class GLGuiWidget; class GLGuiBar; class GLGuiEnergyWidget; class GLGuiEnergyWidgetVertical; }; 28 28 namespace CoRe { class Collision; } 29 29 … … 32 32 class AABBTreeNode; 33 33 class Model; 34 class Track; 35 class TiXmlElement; 34 36 35 37 class ObjectInformationFile; … … 156 158 void increaseHealthMax(float increaseHealth); 157 159 OrxGui::GLGuiWidget* getHealthWidget(); 158 bool hasHealthWidget() const { return this->healthWidget ; };160 bool hasHealthWidget() const { return this->healthWidget != NULL; }; 159 161 160 162 virtual void varChangeHandler( std::list<int> & id ); … … 185 187 private: 186 188 void updateHealthWidget(); 189 void addTrack(const TiXmlElement* root); 187 190 188 191 … … 192 195 float health; //!< The Energy of this Entity, if the Entity has any energy at all. 193 196 float healthMax; //!< The Maximal energy this entity can take. 194 OrxGui::GLGuiEnergyWidget * healthWidget; //!< The Slider (if wanted).197 OrxGui::GLGuiEnergyWidgetVertical* healthWidget; //!< The Slider (if wanted). 195 198 196 199 std::vector<Model*> models; //!< The model that should be loaded for this entity. … … 235 238 protected: 236 239 Vector velocity; //!< speed of the entity 240 Track* entityTrack; //!< this is the track this entity follows (or NULL if none) 237 241 238 242 };
Note: See TracChangeset
for help on using the changeset viewer.