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