Gobelijn API documentation
- generated for commit a0cbea7
|
#include <Unicycle.h>
Public Member Functions | |
Unicycle () | |
Default constructor does not initialize association with engine and owner. More... | |
Unicycle (const Unicycle &ori) | |
Copy constructor. More... | |
Unicycle (Unicycle &&ori) noexcept | |
Move constructor. More... | |
Unicycle & | operator= (const Unicycle &rhs) |
Copy assignment. More... | |
Unicycle & | operator= (Unicycle &&rhs) noexcept |
Copy assignment. More... | |
~Unicycle () | |
Destructor. More... | |
void | accelerate (double speed) |
Accelerate up to given speed. More... | |
void | brake (double speed) |
Brake until given speed. More... | |
void | turn (double degrees) |
Private Attributes | |
Wheel | m_wheel |
double | m_speed |
double | m_direction |
Unicycle interface.
Definition at line 14 of file Unicycle.h.
ODemo::Unicycle::Unicycle | ( | ) |
Default constructor does not initialize association with engine and owner.
Definition at line 14 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER.
ODemo::Unicycle::Unicycle | ( | const Unicycle & | ori | ) |
|
noexcept |
ODemo::Unicycle::~Unicycle | ( | ) |
Copy assignment.
Definition at line 30 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER, m_direction, m_speed, and m_wheel.
Copy assignment.
Definition at line 42 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER, m_direction, m_speed, and m_wheel.
void ODemo::Unicycle::accelerate | ( | double | speed | ) |
Accelerate up to given speed.
Definition at line 56 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER, and m_speed.
void ODemo::Unicycle::brake | ( | double | speed | ) |
Brake until given speed.
Definition at line 62 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER, and m_speed.
void ODemo::Unicycle::turn | ( | double | degrees | ) |
Definition at line 68 of file Unicycle.cpp.
References COMP_MISC_MEMBER_TRACER, m_direction, and m_speed.
|
private |
Definition at line 45 of file Unicycle.h.
Referenced by operator=().
|
private |
Definition at line 46 of file Unicycle.h.
Referenced by accelerate(), brake(), operator=(), and turn().
|
private |
Definition at line 47 of file Unicycle.h.
Referenced by operator=(), and turn().