VOX
A little voxel engine
Loading...
Searching...
No Matches
Event::PlayerMoving Class Reference

#include <Events.hpp>

Inheritance diagram for Event::PlayerMoving:
Inheritance graph
Collaboration diagram for Event::PlayerMoving:
Collaboration graph

Public Member Functions

 PlayerMoving (const uint64_t player_id, const glm::dvec3 &old_pos, const glm::dvec3 &displacement, const BlockInfo::Type &block)
 
 ~PlayerMoving ()=default
 
Type getType () const noexcept override
 
- Public Member Functions inherited from Event::AbstractEvent
 AbstractEvent ()=default
 
virtual ~AbstractEvent ()=default
 
virtual Type getType () const noexcept=0
 

Static Public Member Functions

static Type getStaticType ()
 
- Static Public Member Functions inherited from Event::AbstractEvent
static Type getStaticType ()
 

Public Attributes

uint64_t player_id
 
glm::dvec3 old_position
 
glm::dvec3 displacement
 
BlockInfo::Type ground_block
 

Constructor & Destructor Documentation

◆ PlayerMoving()

Event::PlayerMoving::PlayerMoving ( const uint64_t  player_id,
const glm::dvec3 &  old_pos,
const glm::dvec3 &  displacement,
const BlockInfo::Type block 
)
inline

◆ ~PlayerMoving()

Event::PlayerMoving::~PlayerMoving ( )
default

Member Function Documentation

◆ getStaticType()

static Type Event::PlayerMoving::getStaticType ( )
inlinestatic

◆ getType()

Type Event::PlayerMoving::getType ( ) const
inlineoverridevirtualnoexcept

Implements Event::AbstractEvent.

Member Data Documentation

◆ displacement

glm::dvec3 Event::PlayerMoving::displacement

◆ ground_block

BlockInfo::Type Event::PlayerMoving::ground_block

◆ old_position

glm::dvec3 Event::PlayerMoving::old_position

◆ player_id

uint64_t Event::PlayerMoving::player_id

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