#include <motion.h>
|
enum class | FlowType { ONCE
, REPEAT
, PINGPONG
} |
|
enum class | SegmentEase {
NONE
, SQUARE
, SQUAREDOWN
, CUBE
,
CUBEDOWN
, SINE
, SINEDOWN
, SMOOTH
,
SMOOTH2
} |
|
◆ FlowType
Enumerator |
---|
ONCE | |
REPEAT | |
PINGPONG | |
◆ SegmentEase
Enumerator |
---|
NONE | |
SQUARE | |
SQUAREDOWN | |
CUBE | |
CUBEDOWN | |
SINE | |
SINEDOWN | |
SMOOTH | |
SMOOTH2 | |
◆ Motion()
yourgame::util::Motion::Motion |
( |
FlowType |
flowType | ) |
|
◆ addIdle()
Motion & yourgame::util::Motion::addIdle |
( |
float |
dt, |
|
|
float |
val |
|
) |
| |
◆ addRamp()
Motion & yourgame::util::Motion::addRamp |
( |
float |
dt, |
|
|
float |
val0, |
|
|
float |
val1, |
|
|
SegmentEase |
ease |
|
) |
| |
◆ getDirection()
bool yourgame::util::Motion::getDirection |
( |
| ) |
|
◆ isFinished()
bool yourgame::util::Motion::isFinished |
( |
| ) |
|
◆ isPaused()
bool yourgame::util::Motion::isPaused |
( |
| ) |
|
◆ pause()
void yourgame::util::Motion::pause |
( |
bool |
pause | ) |
|
◆ restart()
void yourgame::util::Motion::restart |
( |
| ) |
|
◆ setDirection()
void yourgame::util::Motion::setDirection |
( |
bool |
forward | ) |
|
◆ tick()
void yourgame::util::Motion::tick |
( |
double |
dt | ) |
|
◆ val()
float yourgame::util::Motion::val |
( |
| ) |
|
The documentation for this class was generated from the following files: