Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3812 in orxonox.OLD for orxonox/trunk/src/animation_player.h


Ignore:
Timestamp:
Apr 13, 2005, 11:08:43 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: animation-player added

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation_player.h

    r3807 r3812  
    11/*!
    2     \file proto_class.h
    3     \brief Definition of the proto class template, used quickly start work
    4     \todo Example: this shows how to use simply add a Marker that here has to be done something.
    5 
    6     The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
    7     It is an example for the CODING-CONVENTION, and a starting-point for every class.
     2    \file animation_player.h
    83*/
    94
    10 #ifndef _PROTO_CLASS_H
    11 #define _PROTO_CLASS_H
     5#ifndef _ANIMATION_PLAYER_H
     6#define _ANIMATION_PLAYER_H
    127
    13 #include "what realy has to be included"
    148#include "base_object.h"
     9#include "animation.h"
    1510
    16 // FORWARD DEFINITION \\
    17 class someClassWeNeed;
     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
     22  void tick(float timePassed);
     23
     24 private:
     25  /* singleton */
     26  AnimationPlayer(void);
     27  static AnimationPlayer* singletonRef;
     28
     29  /* class specific */
     30  tList<Anim>* animationList;              //!< A List of Animations to be handled
     31};
    1832
    1933
    20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/
    21 
    22 //! A default class that aids you to start creating a new class
    23 /**
    24    here can be some longer description of this class
    25 */
    26 class ProtoClass : public BaseObject {
    27 
    28  public:
    29   ProtoClass();
    30   virtual ~ProtoClass();
    31 
    32   bool doNonSense (int nothing);
    33 
    34  private:
    35   int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
    36 
    37 };
    38 
    39 #endif /* _PROTO_CLASS_H */
     34#endif /* _ANIMATION_PLAYER_H */
Note: See TracChangeset for help on using the changeset viewer.