Gorgon Game Engine
DiscreteAnimation Class Referenceabstract
Inheritance diagram for DiscreteAnimation:
[legend]

Public Member Functions

virtual unsigned CurrentFrame () const =0
 Returns the current frame. More...
 
- Public Member Functions inherited from Base
 Base (bool create=false)
 This constructor creates a new controller depending on the create parameter. More...
 
 Base (const Base &base)
 Copies the animation. More...
 
 Base (ControllerBase &controller)
 Sets the controller for this animation to the given controller. More...
 
virtual void DeleteAnimation () const
 Deletes this animation. More...
 
virtual ControllerBaseGetController () const
 Returns the controller of this animation. More...
 
virtual int GetDuration () const =0
 Returns the duration of the animation if it is a known apriori. More...
 
virtual bool HasController () const
 Returns whether this animation has a controller. More...
 
virtual bool Progress (unsigned &leftover)=0
 This function should progress the animation. More...
 
virtual void RemoveController ()
 Removes the controller of this animation. More...
 
virtual void SetController (ControllerBase &controller)
 Sets the controller to the given controller. More...
 

Static Public Attributes

static const unsigned NoFrame
 This variable denotes that this animation has no frame at the moment. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Base
virtual ~Base ()
 Virtual destructor. More...
 
- Protected Attributes inherited from Base
ControllerBasecontroller
 Controller of this animation. More...
 

Member Function Documentation

◆ CurrentFrame()

virtual unsigned CurrentFrame ( ) const
pure virtual

Returns the current frame.

This function might return NoFrame to denote that the animation does not contain a frame.

Implemented in basic_TextureAnimation< T_, P_, F_ >.

Member Data Documentation

◆ NoFrame

const unsigned NoFrame
static

This variable denotes that this animation has no frame at the moment.


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