Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::event::EntityMoved Struct Reference

Fired after an entity begins moving from one position to another. More...

#include <EntityMoved.hpp>

Public Member Functions

 EntityMoved (bl::ecs::Entity entity, const bl::tmap::Position &oldPos, const bl::tmap::Position &pos, bool running=false)
 Construct a new EntityMoved event. More...
 

Public Attributes

const bl::ecs::Entity entity
 The entity that moved. More...
 
const bl::tmap::Position previousPosition
 The previous position of the entity. More...
 
const bl::tmap::Position & position
 The current position of the entity. More...
 
const bool running
 Whether or not the entity is running. More...
 

Detailed Description

Fired after an entity begins moving from one position to another.

Definition at line 18 of file EntityMoved.hpp.

Constructor & Destructor Documentation

◆ EntityMoved()

core::event::EntityMoved::EntityMoved ( bl::ecs::Entity  entity,
const bl::tmap::Position &  oldPos,
const bl::tmap::Position &  pos,
bool  running = false 
)
inline

Construct a new EntityMoved event.

Parameters
entityThe entity that moved
oldPosThe old position
posThe current position

Definition at line 38 of file EntityMoved.hpp.

Member Data Documentation

◆ entity

const bl::ecs::Entity core::event::EntityMoved::entity

The entity that moved.

Definition at line 20 of file EntityMoved.hpp.

◆ position

const bl::tmap::Position& core::event::EntityMoved::position

The current position of the entity.

Definition at line 26 of file EntityMoved.hpp.

◆ previousPosition

const bl::tmap::Position core::event::EntityMoved::previousPosition

The previous position of the entity.

Definition at line 23 of file EntityMoved.hpp.

◆ running

const bool core::event::EntityMoved::running

Whether or not the entity is running.

Definition at line 29 of file EntityMoved.hpp.


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