Changeset 9705 in orxonox.OLD for branches/new_class_id/src/util/animation
- Timestamp:
- Aug 25, 2006, 9:44:53 PM (18 years ago)
- Location:
- branches/new_class_id/src/util/animation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/util/animation/animation.cc
r5777 r9705 20 20 #include "animation_player.h" 21 21 22 NewObjectListDefinition(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 -
branches/new_class_id/src/util/animation/animation.h
r6222 r9705 73 73 class Animation : public BaseObject 74 74 { 75 public: 75 NewObjectListDeclaration(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 -
branches/new_class_id/src/util/animation/animation_player.cc
r9406 r9705 22 22 23 23 24 24 NewObjectListDefinition(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 -
branches/new_class_id/src/util/animation/animation_player.h
r5777 r9705 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 NewObjectListDeclaration(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.