Nymph Game Engine
Chaiscript based Game Engine
|
Class for sprite move event. More...
#include <sprite_move_event.h>
Public Member Functions | |
SpriteMoveEvent (const glm::vec2 &velocity, const glm::vec2 &next_position) | |
SpriteMoveEvent constructor. More... | |
glm::vec2 | getVelocity () const noexcept |
Gets the velocity. More... | |
glm::vec2 | getNextPosition () const noexcept |
Gets the next position. More... | |
Public Member Functions inherited from Events::Event | |
Event (const EventType &type) | |
Event constructor. More... | |
EventType | getEventType () const |
Gets the event type. More... | |
Static Public Member Functions | |
static std::shared_ptr < SpriteMoveEvent > | create (glm::vec2 &velocity, const glm::vec2 &next_position) |
SpriteMoveEvent factory function. More... | |
Class for sprite move event.
|
inline |
SpriteMoveEvent constructor.
[in] | velocity | The velocity |
[in] | next_position | The next position |
|
inlinestatic |
SpriteMoveEvent factory function.
velocity | The velocity | |
[in] | next_position | The next position |
Referenced by Game::SpriteMovementMotor::MoveUpReactor::enterState(), Game::SpriteMovementMotor::MoveDownReactor::enterState(), Game::SpriteMovementMotor::MoveLeftReactor::enterState(), Game::SpriteMovementMotor::MoveRightReactor::enterState(), and generated::getSpriteMoveEventModule().
|
inlinenoexcept |
Gets the next position.
Referenced by generated::getSpriteMoveEventModule().
|
inlinenoexcept |