Changeset 9869 in orxonox.OLD for trunk/src/util/animation
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- Location:
- trunk/src/util/animation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/animation/animation.cc
r5777 r9869 20 20 #include "animation_player.h" 21 21 22 ObjectListDefinition(Animation); 22 23 /** 23 24 * creates a new Animation … … 27 28 Animation::Animation() 28 29 { 29 this-> setClassID(CL_ANIMATION, "Animation");30 this->registerObject(this, Animation::_objectList); 30 31 31 32 // initialize a beginning KeyFrame, that will be deleted afterwards -
trunk/src/util/animation/animation.h
r6222 r9869 73 73 class Animation : public BaseObject 74 74 { 75 public: 75 ObjectListDeclaration(Animation); 76 public: 76 77 virtual ~Animation(); 77 78 … … 95 96 inline bool ifDelete() { return bDelete; }; 96 97 97 98 protected: 98 99 Animation(); 99 100 100 101 void handleInfinity(); 101 102 102 103 protected: 103 104 // variables 104 105 float localTime; //!< The Time passed since the beginning of the currentKeyFrame. … … 119 120 class aTest 120 121 { 121 122 public: 122 123 inline aTest() { last = 0.0;} 123 124 /** a little debug information to show the results of this class @param f new value */ 124 125 inline void littleDebug(float f) { diff = f - last; printf("f=%f, diff=%f\n", f,diff); last = f;} 125 126 private: 126 127 float diff; //!< difference from the last value 127 128 float last; //!< the last calculated value -
trunk/src/util/animation/animation_player.cc
r9406 r9869 22 22 23 23 24 24 ObjectListDefinition(AnimationPlayer); 25 25 /** 26 26 * standard constructor … … 28 28 AnimationPlayer::AnimationPlayer () 29 29 { 30 this-> setClassID(CL_ANIMATION_PLAYER, "AnimationPlayer");30 this->registerObject(this, AnimationPlayer::_objectList); 31 31 this->setName("AnimationPlayer"); 32 32 -
trunk/src/util/animation/animation_player.h
r5777 r9869 28 28 eveything else will be done by the AnimationPlayer itself.\n 29 29 */ 30 class AnimationPlayer : public BaseObject { 30 class AnimationPlayer : public BaseObject 31 { 32 ObjectListDeclaration(AnimationPlayer); 31 33 32 34 public: 33 35 /** @returns a Pointer to the only object of this Class */ 34 36 inline static AnimationPlayer* getInstance() { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; }; … … 50 52 void debug(); 51 53 52 54 private: 53 55 /* singleton */ 54 56 AnimationPlayer();
Note: See TracChangeset
for help on using the changeset viewer.