|
RType
|
#include <Timer.hpp>


Public Member Functions | |
| Timer () | |
| Construct a new Timer:: Timer 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 | setActive (bool active) |
| setActive, set the timer active More... | |
| bool | isActive () const |
| getActive, get the timer active More... | |
| void | setDirection (int direction) |
| int | getDirection () const |
Public Member Functions inherited from IComponentRType | |
| virtual | ~IComponentRType ()=default |
| Construct a new IComponentRType object. More... | |
Public Attributes | |
| timeval | _startTime {} |
| timeval | _now {} |
| timeval | _targetTime {} |
| timeval | _diff {} |
Protected Attributes | |
| std::shared_ptr< Drawable > | _target |
| bool | _active |
| int | _direction |
Protected Attributes inherited from IComponentRType | |
| char * | _attribute |
| Timer::Timer | ( | ) |
Construct a new Timer:: Timer object.
Definition at line 13 of file Timer.cpp.
References _active, IComponentRType::_attribute, _diff, _direction, _now, _startTime, and _targetTime.
|
overridevirtual |
getAttribute, get the attribute
Implements IComponentRType.
Definition at line 29 of file Timer.cpp.
References IComponentRType::_attribute.
| int Timer::getDirection | ( | ) | const |
Definition at line 85 of file Timer.cpp.
References _direction.
| std::shared_ptr< Drawable > Timer::getTarget | ( | ) |
| bool Timer::isActive | ( | ) | const |
| void Timer::setActive | ( | bool | active | ) |
|
overridevirtual |
setAttribute, set the attribute
| attribute |
Implements IComponentRType.
Definition at line 38 of file Timer.cpp.
References IComponentRType::_attribute.
| void Timer::setDirection | ( | int | direction | ) |
Definition at line 81 of file Timer.cpp.
References _direction.
| void Timer::setTarget | ( | std::shared_ptr< Drawable > | target | ) |
|
protected |
Definition at line 75 of file Timer.hpp.
Referenced by isActive(), setActive(), and Timer().
|
protected |
Definition at line 76 of file Timer.hpp.
Referenced by getDirection(), setDirection(), and Timer().