Changeset 8880 in orxonox.OLD for branches/single_player_map/src/world_entities/door.cc
- Timestamp:
- Jun 28, 2006, 6:02:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/door.cc
r8879 r8880 22 22 23 23 #include "interactive_model.h" 24 #include "md2/md2Model.h" 24 25 25 26 26 #include "door.h" … … 32 32 33 33 CREATE_FACTORY(Door, CL_DOOR); 34 35 36 37 //! list of all different animations a std md2model supports 38 sAnim Door::animationList[2] = 39 { 40 // begin, end, fps, interruptable 41 { 0, 15, 9, 0 }, //!< OPEN 42 { 15, 30, 9, 0 } //!< CLOSE 43 }; 44 34 45 35 46 … … 78 89 * sets the animatin of this entity 79 90 */ 80 void Door::setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback)91 void Door::setAnimation(int animNum, int playbackMode) 81 92 { 82 93 if( likely(this->getModel(0) != NULL)) … … 108 119 return; 109 120 110 this->setAnimation( 0, 1, 5, 0, MD2_ANIM_ONCE);121 this->setAnimation(DOOR_OPEN, MD2_ANIM_ONCE); 111 122 112 123 }
Note: See TracChangeset
for help on using the changeset viewer.