Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3727 in orxonox.OLD for orxonox/trunk/src/simple_animation.h


Ignore:
Timestamp:
Apr 5, 2005, 7:44:05 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added a third debug level, made SimpleAnimation singleton and restructured it to be more opengl command style

File:
1 edited

Legend:

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

    r3726 r3727  
    4343 
    4444 public:
    45   SimpleAnimation(PNode* parent);
    46   virtual ~SimpleAnimation();
     45  static SimpleAnimation* getInstance();
    4746
     47  void AnimatorBegin();
     48  void AnimatorEnd();
     49  void selectObject(WorldEntity* entity);
    4850  void addKeyFrame(Vector* point, Quaternion* orientation, float time);
    4951  void addKeyFrame(Vector* point, Quaternion* orientation, float time, movementMode mode);
    5052  void addKeyFrame(KeyFrame* frame);
    5153  void reset();
     54
    5255
    5356  void start();
     
    6063
    6164 private:
     65  SimpleAnimation();
     66  virtual ~SimpleAnimation();
     67
     68  static SimpleAnimation* singletonRef;
    6269  bool bRunning;                   //<! is set, when the animation is running
    6370  tList<KeyFrame>* frames;         //<! where keyframes are stored in
     
    6976 
    7077  Vector* tmpVect;                 //<! this is the temporary vector save place -
    71 
     78  WorldEntity* workingObject;      //<! this is a pointer to the current working object that has been selected via selectObject()
     79  bool bDescriptive;               //<! is true, when AnimatorBegin() was executed but no AnimatorEnd() yet: in describtive mode: pass commands
    7280};
    7381
Note: See TracChangeset for help on using the changeset viewer.