Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/animation/animation_player.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation_player.h
r4597 r4746 30 30 public: 31 31 /** \returns a Pointer to the only object of this Class */ 32 inline static AnimationPlayer* getInstance( void) { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; };32 inline static AnimationPlayer* getInstance() { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; }; 33 33 34 virtual ~AnimationPlayer( void);34 virtual ~AnimationPlayer(); 35 35 36 36 // animation handling 37 37 void addAnimation(Animation* animation); 38 38 void removeAnimation(Animation* animation); 39 void flush( void);39 void flush(); 40 40 41 41 // time functions 42 42 void tick(float timePassed); 43 void play( void);44 void pause( void);43 void play(); 44 void pause(); 45 45 46 46 Animation* getAnimationFromBaseObject(const BaseObject* baseObject) const; 47 47 48 void debug( void);48 void debug(); 49 49 50 50 private: 51 51 /* singleton */ 52 AnimationPlayer( void);52 AnimationPlayer(); 53 53 static AnimationPlayer* singletonRef; //!< SingletonReference to this class. 54 54
Note: See TracChangeset
for help on using the changeset viewer.