Gorgon Game Engine
Animation Class Reference

A regular drawable animation. More...

Inheritance diagram for Animation:
[legend]

Additional Inherited Members

- Public Member Functions inherited from Drawable
virtual ~Drawable ()
 
void Draw (TextureTarget &target, const Geometry::Point &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, int x, int y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. 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...
 
- Protected Member Functions inherited from Drawable
virtual void draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color) const =0
 This is the only function that needs to implemented for a drawable. More...
 
- Protected Member Functions inherited from Base
virtual ~Base ()
 Virtual destructor. More...
 
- Protected Attributes inherited from Base
ControllerBasecontroller
 Controller of this animation. More...
 

Detailed Description

A regular drawable animation.


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