Changeset 8880 in orxonox.OLD for branches/single_player_map/src/world_entities/door.h
- Timestamp:
- Jun 28, 2006, 6:02:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/door.h
r8879 r8880 4 4 #include "world_entity.h" 5 5 6 #include "md2/md2Model.h" 6 7 7 8 class TiXmlElement; 9 10 11 //! animation names enumeration 12 typedef enum DoorAnimType 13 { 14 OPEN = 0, 15 CLOSE, 16 17 MAX_ANIMATIONS 18 }; 8 19 9 20 … … 20 31 void setActionRadius(float radius) { this->actionRadius = radius; } 21 32 22 virtual void tick (float time);23 24 33 void open(); 25 34 void close(); … … 30 39 31 40 41 virtual void tick (float time); 42 43 32 44 private: 33 45 bool checkOpen(); 34 void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback);46 void setAnimation(int animNum, int playbackMode = 0); 35 47 36 48 … … 40 52 float actionRadius; //!< action radius 41 53 54 static sAnim animationList[2]; //!< list of the animations 42 55 43 56 };
Note: See TracChangeset
for help on using the changeset viewer.