Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/animation_player.h @ 3818

Last change on this file since 3818 was 3816, checked in by bensch, 20 years ago

orxonox/trunk: AnimationPlayer updated, created a debug function, and general functionality

File size: 781 bytes
Line 
1/*!
2    \file animation_player.h
3*/
4
5#ifndef _ANIMATION_PLAYER_H
6#define _ANIMATION_PLAYER_H
7
8#include "base_object.h"
9#include "animation.h"
10
11/* FORWARD DEFINITION */
12
13//! A AnimationPlayer, that handles the animation of all the Animations in the scene.
14class AnimationPlayer : public BaseObject {
15
16 public:
17  static AnimationPlayer* getInstance(void);
18  virtual ~AnimationPlayer(void);
19
20  void addAnimation(Anim* animation);
21  void removeAnimation(Anim* animation);
22  void flush(void);
23
24  void tick(float timePassed);
25
26  void debug(void);
27
28 private:
29  /* singleton */
30  AnimationPlayer(void);
31  static AnimationPlayer* singletonRef;
32
33  /* class specific */
34  tList<Anim>* animationList;              //!< A List of Animations to be handled
35};
36
37
38#endif /* _ANIMATION_PLAYER_H */
Note: See TracBrowser for help on using the repository browser.