ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | Protected Member Functions | List of all members
PZ::Tween Class Reference
Inheritance diagram for PZ::Tween:
PZ::AnimationBase

Public Member Functions

 Tween (AnimationManager &animationManager)
 
 Tween (AnimationProperties *properties, AnimationManager &animationManager)
 
 Tween (const Tween &copy)
 
 ~Tween ()
 
void SetAll (Attribute attribute, float goal, Easing::Transition transition, Easing::Equation equation, float time, float delay=0.f, int repeat=0, bool pingpong=false, bool relativeGoal=false)
 
void SetAttribute (Attribute attribute)
 
void SetGoal (float goal)
 
void SetRelativeGoal (bool relative)
 
void SetTransition (Easing::Transition transition)
 
void SetEquation (Easing::Equation equation)
 
void SetTime (float time)
 
void SetDelay (float delay)
 
void SetRepeat (int repeat)
 
void SetPingPoing (bool pingpong)
 
Attribute GetAttribute () const
 
float GetGoal () const
 
bool GetRelativeGoal () const
 
Easing::Transition GetTransition () const
 
Easing::Equation GetEquation () const
 
float GetTime () const
 
float GetDelay () const
 
int GetRepeat () const
 
bool GetPingPong () const
 
virtual AnimationBaseGetCopy ()
 
virtual void AddTime (float deltaTime)
 
- Public Member Functions inherited from PZ::AnimationBase
 AnimationBase (AnimationManager &animationManager)
 
 AnimationBase (AnimationProperties *properties, AnimationManager &animationManager)
 
virtual ~AnimationBase ()
 
void Start (Animable &animable)
 
void Stop ()
 
void Pause (bool pause=true)
 
void Resume ()
 
bool IsPaused () const
 
void SetStartCallback (AnimationCallback &callback)
 
void SetFinishedCallback (AnimationCallback &callback)
 
AnimableGetAnimable ()
 
State GetState () const
 

Protected Member Functions

virtual bool StartImpl ()
 
- Protected Member Functions inherited from PZ::AnimationBase
AnimationManagerGetAnimationManager () const
 

Additional Inherited Members

- Public Types inherited from PZ::AnimationBase
enum  State {
  NOT_STARTED, STARTED, RUNNING, PAUSED,
  STOPPED, FINISHED
}
 
- Protected Attributes inherited from PZ::AnimationBase
Animableobject
 
State state
 
AnimationCallback onStart
 
AnimationCallback onFinished
 

Constructor & Destructor Documentation

PZ::Tween::Tween ( AnimationManager animationManager)
PZ::Tween::Tween ( AnimationProperties properties,
AnimationManager animationManager 
)
PZ::Tween::Tween ( const Tween copy)
PZ::Tween::~Tween ( )

Member Function Documentation

virtual void PZ::Tween::AddTime ( float  deltaTime)
virtual

Implements PZ::AnimationBase.

Attribute PZ::Tween::GetAttribute ( ) const
virtual AnimationBase* PZ::Tween::GetCopy ( )
virtual

Implements PZ::AnimationBase.

float PZ::Tween::GetDelay ( ) const
Easing::Equation PZ::Tween::GetEquation ( ) const
float PZ::Tween::GetGoal ( ) const
bool PZ::Tween::GetPingPong ( ) const
bool PZ::Tween::GetRelativeGoal ( ) const
int PZ::Tween::GetRepeat ( ) const
float PZ::Tween::GetTime ( ) const
Easing::Transition PZ::Tween::GetTransition ( ) const
void PZ::Tween::SetAll ( Attribute  attribute,
float  goal,
Easing::Transition  transition,
Easing::Equation  equation,
float  time,
float  delay = 0.f,
int  repeat = 0,
bool  pingpong = false,
bool  relativeGoal = false 
)
void PZ::Tween::SetAttribute ( Attribute  attribute)
void PZ::Tween::SetDelay ( float  delay)
void PZ::Tween::SetEquation ( Easing::Equation  equation)
void PZ::Tween::SetGoal ( float  goal)
void PZ::Tween::SetPingPoing ( bool  pingpong)
void PZ::Tween::SetRelativeGoal ( bool  relative)
void PZ::Tween::SetRepeat ( int  repeat)
void PZ::Tween::SetTime ( float  time)
void PZ::Tween::SetTransition ( Easing::Transition  transition)
virtual bool PZ::Tween::StartImpl ( )
protectedvirtual

Implements PZ::AnimationBase.


The documentation for this class was generated from the following file: