Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Game::SpriteMoveEvent Class Reference

Class for sprite move event. More...

#include <sprite_move_event.h>

Inheritance diagram for Game::SpriteMoveEvent:
Events::Event

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...
 

Detailed Description

Class for sprite move event.

Constructor & Destructor Documentation

Game::SpriteMoveEvent::SpriteMoveEvent ( const glm::vec2 &  velocity,
const glm::vec2 &  next_position 
)
inline

SpriteMoveEvent constructor.

Parameters
[in]velocityThe velocity
[in]next_positionThe next position

Member Function Documentation

static std::shared_ptr<SpriteMoveEvent> Game::SpriteMoveEvent::create ( glm::vec2 &  velocity,
const glm::vec2 &  next_position 
)
inlinestatic
glm::vec2 Game::SpriteMoveEvent::getNextPosition ( ) const
inlinenoexcept

Gets the next position.

Returns
The next position.

Referenced by generated::getSpriteMoveEventModule().

glm::vec2 Game::SpriteMoveEvent::getVelocity ( ) const
inlinenoexcept

Gets the velocity.

Returns
The velocity.

Referenced by generated::getSpriteMoveEventModule().


The documentation for this class was generated from the following file: