|
RType
|
#include <Animatable.hpp>


Public Member Functions | |
| Animatable () | |
| Construct a new Animatable:: Animatable object. More... | |
| char * | getAttribute () const override |
| getAttribute, get the attribute More... | |
| void | setAttribute (std::string attribute) override |
| setAttribute, set the attribute More... | |
| void | setTarget (std::shared_ptr< Drawable > target) |
| setTarget, set the target More... | |
| std::shared_ptr< Drawable > | getTarget () |
| getTarget, get the target More... | |
| void | setTime (timeval frametime) |
| setTime, set the time More... | |
| timeval | getTime () |
| getTime, get the time More... | |
Public Member Functions inherited from IComponentRType | |
| virtual | ~IComponentRType ()=default |
| Construct a new IComponentRType object. More... | |
Public Attributes | |
| timeval | _now |
| timeval | _diff |
| timeval | _chrono |
| int | _numberFrameToAnim |
| int | _frameIndex |
| int | _numberFrame |
| int | _startFrameIndex |
| int | _frameForOnePicture |
Protected Attributes | |
| std::shared_ptr< Drawable > | sprite |
| timeval | _frametime |
Protected Attributes inherited from IComponentRType | |
| char * | _attribute |
Definition at line 18 of file Animatable.hpp.
| Animatable::Animatable | ( | ) |
Construct a new Animatable:: Animatable object.
Definition at line 16 of file Animatable.cpp.
References IComponentRType::_attribute.
|
overridevirtual |
getAttribute, get the attribute
Implements IComponentRType.
Definition at line 26 of file Animatable.cpp.
References IComponentRType::_attribute.
| std::shared_ptr< Drawable > Animatable::getTarget | ( | ) |
getTarget, get the target
Definition at line 55 of file Animatable.cpp.
| timeval Animatable::getTime | ( | ) |
getTime, get the time
Definition at line 73 of file Animatable.cpp.
References _frametime.
|
overridevirtual |
setAttribute, set the attribute
| attribute |
Implements IComponentRType.
Definition at line 35 of file Animatable.cpp.
References IComponentRType::_attribute.
| void Animatable::setTarget | ( | std::shared_ptr< Drawable > | target | ) |
| void Animatable::setTime | ( | timeval | frametime | ) |
setTime, set the time
| frametime |
Definition at line 64 of file Animatable.cpp.
References _frametime.
| timeval Animatable::_chrono |
Definition at line 71 of file Animatable.hpp.
| timeval Animatable::_diff |
Definition at line 70 of file Animatable.hpp.
| int Animatable::_frameForOnePicture |
Definition at line 76 of file Animatable.hpp.
| int Animatable::_frameIndex |
Definition at line 73 of file Animatable.hpp.
|
protected |
Definition at line 80 of file Animatable.hpp.
| timeval Animatable::_now |
Definition at line 69 of file Animatable.hpp.
| int Animatable::_numberFrame |
Definition at line 74 of file Animatable.hpp.
| int Animatable::_numberFrameToAnim |
Definition at line 72 of file Animatable.hpp.
| int Animatable::_startFrameIndex |
Definition at line 75 of file Animatable.hpp.
|
protected |
Definition at line 79 of file Animatable.hpp.