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

Fired when an entity rotates without moving. More...

#include <EntityMoved.hpp>

Public Member Functions

 EntityRotated (bl::ecs::Entity e, bl::tmap::Direction dir, bl::tmap::Direction og)
 Construct a new Entity Rotated event. More...
 

Public Attributes

const bl::ecs::Entity entity
 The entity that rotated. More...
 
const bl::tmap::Direction faceDir
 The direction the entity is now facing. More...
 
const bl::tmap::Direction origDir
 The direction the entity was facing. More...
 

Detailed Description

Fired when an entity rotates without moving.

Definition at line 76 of file EntityMoved.hpp.

Constructor & Destructor Documentation

◆ EntityRotated()

core::event::EntityRotated::EntityRotated ( bl::ecs::Entity  e,
bl::tmap::Direction  dir,
bl::tmap::Direction  og 
)
inline

Construct a new Entity Rotated event.

Parameters
eThe entity that rotated
dirThe direction it is now facing
ogThe original direction it was facing

Definition at line 93 of file EntityMoved.hpp.

Member Data Documentation

◆ entity

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

The entity that rotated.

Definition at line 78 of file EntityMoved.hpp.

◆ faceDir

const bl::tmap::Direction core::event::EntityRotated::faceDir

The direction the entity is now facing.

Definition at line 81 of file EntityMoved.hpp.

◆ origDir

const bl::tmap::Direction core::event::EntityRotated::origDir

The direction the entity was facing.

Definition at line 84 of file EntityMoved.hpp.


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