 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 #include "../Animation.h"
16 static const unsigned NoFrame = (unsigned)-1;
36 virtual bool IsIn(
unsigned time)
const {
65 virtual void Remove(
unsigned index) = 0;
74 virtual unsigned StartOf(
unsigned frame)
const = 0;
virtual void Clear()=0
Clears all frames from this animation.
virtual void MoveBefore(unsigned index, int before)=0
Moves the frame with the given index to the specified point the animation.
virtual ~Frame()
Definition: Discrete.h:22
virtual unsigned GetStart() const =0
Returns the starting time of this frame.
virtual unsigned StartOf(unsigned frame) const =0
Returns the starting time of the given frame.
virtual void Add(const Frame &frame)=0
Adds a frame to the end of the animation.
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
virtual int GetCount() const =0
Returns number of frames.
This interface marks a class as animation provider.
Definition: Animation.h:283
This is the base class for all animations.
Definition: Animation.h:306
virtual void Remove(unsigned index)=0
Removes the given frame.
virtual bool IsIn(unsigned time) const
Returns if the given time is within this frame.
Definition: Discrete.h:36
Provides a discreet animation that is made out of frames.
Definition: Discrete.h:45
constexpr Type Animation
Definition: GID.h:187
virtual const Frame & FrameAt(int index) const =0
Returns the frame at specific point.
virtual void Insert(const Frame &frame, int before)=0
Adds a frame to the specified point the animation.
virtual unsigned GetEnd() const
Returns the ending time of this frame.
Definition: Discrete.h:31
static const unsigned NoFrame
This variable denotes that this animation has no frame at the moment.
Definition: Discrete.h:16
virtual unsigned CurrentFrame() const =0
Returns the current frame.
virtual unsigned GetDuration() const =0
Returns the duration of this frame.
virtual unsigned GetDuration() const =0
Returns the duration of the animation.
virtual unsigned GetDuration(unsigned frame) const =0
Returns the duration of the given frame.
This is the base class for a single frame in a discreet animation.
Definition: Discrete.h:20
const Frame & operator[](int index) const
Returns the frame at specific point.
Definition: Discrete.h:71