Gorgon Game Engine
basic_AnimationFrame< T_ > Class Template Reference
Inheritance diagram for basic_AnimationFrame< T_ >:
[legend]

Public Member Functions

 basic_AnimationFrame (T_ &image, unsigned duration=42, unsigned start=0)
 
unsigned GetDuration () const override
 Returns the duration of this frame. More...
 
unsigned GetEnd () const override
 Returns the ending time of this frame. More...
 
T_ & GetImage () const
 Returns the image for this frame. More...
 
unsigned GetStart () const override
 Returns the starting time of this frame. More...
 
bool IsIn (unsigned time) const override
 Returns if the given time is within this frame. More...
 
- Public Member Functions inherited from Frame
virtual ~Frame ()
 

Constructor & Destructor Documentation

◆ basic_AnimationFrame()

basic_AnimationFrame ( T_ &  image,
unsigned  duration = 42,
unsigned  start = 0 
)

Member Function Documentation

◆ GetDuration()

unsigned GetDuration ( ) const
overridevirtual

Returns the duration of this frame.

Implements Frame.

◆ GetEnd()

unsigned GetEnd ( ) const
overridevirtual

Returns the ending time of this frame.

Reimplemented from Frame.

◆ GetImage()

T_& GetImage ( ) const

Returns the image for this frame.

◆ GetStart()

unsigned GetStart ( ) const
overridevirtual

Returns the starting time of this frame.

Implements Frame.

◆ IsIn()

bool IsIn ( unsigned  time) const
overridevirtual

Returns if the given time is within this frame.

Reimplemented from Frame.


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