1 #ifndef AETHER_ANIMATION_HPP 2 #define AETHER_ANIMATION_HPP 4 #include "Aether/base/Element.hpp" 42 void update(
unsigned int dt);
void resume()
Resume the animation.
void pause()
Pause the animation.
void render()
All children aren't rendered - only the current one.
bool isPaused()
Check if animation is paused.
Animation(int x, int y, int w, int h)
Construct a new Animation object.
unsigned int animateSpeed()
Returns animation time.
int w()
Returns width of element.
int x()
Returns x-coordinate of element.
Element is the base class to be inherited to form all other types of elements.
Definition: Element.hpp:18
int h()
Returns height of element.
Base namespace for all Aether related classes and functions.
An animation is an element containing a list of textures which are changed through to create the anim...
Definition: Animation.hpp:15
void setAnimateSpeed(int t)
Set time for each frame.
void update(unsigned int dt)
Updates handles switching between frames.
bool setFrameIndex(unsigned int i)
Set current frame to element at given index.
bool setFrameElement(Element *e)
Set current frame to given element.
int y()
Returns y-coordinate of element.