Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3858 in orxonox.OLD for orxonox/trunk/src/animation.h


Ignore:
Timestamp:
Apr 17, 2005, 3:27:54 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: moved the infinity-handling into animation.cc

File:
1 edited

Legend:

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

    r3853 r3858  
    2525
    2626//! An enumerator describing what the animation should do after the last keyframe.
     27/**
     28   ANIM_INF_CONSTANT stays at the end of the animation
     29   ANIM_INF_REWIND loops back to the beginning and replays the animation
     30*/
    2731typedef enum ANIM_INFINITY {ANIM_INF_CONSTANT,
    28                             ANIM_INF_LINEAR,
    29                             ANIM_INF_PINGPONG,
    30                             ANIM_INF_REWIND};//, ANIM_DELETE}
     32                            ANIM_INF_REPLAY,
     33                            ANIM_INF_DELETE};//, ANIM_INF_LINEAR, ANIM_INF_PINGPONG;
    3134
    3235//! A Struct for Keyframes that simply hold a float
     
    7376  Animation(void);
    7477
     78  void handleInfinity(void);
    7579  // variables
    7680  float localTime;                //!< The Time passed since the beginning of the currentKeyFrame.
     
    8185  bool bHandled;                  //!< If this Animation is handled by the AnimationPlayer.
    8286  bool bRunning;                  //!< If the animation is running
     87  //  bool bDelete;                   //!< If true, the animation will be deleted through the AnimationPlayer.
    8388};
    8489
Note: See TracChangeset for help on using the changeset viewer.