Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Position Class Reference

Entity has position and direction it is looking at. More...

#include <Components.h>

+ Inheritance diagram for Leviathan::Position:

Classes

struct  Data
 

Public Types

using StateT = PositionState
 

Public Member Functions

 Position (const Data &data)
 Creates at specific position. More...
 
 REFERENCE_HANDLE_UNCOUNTED_TYPE (Position)
 
- Public Member Functions inherited from Leviathan::ComponentWithStates< PositionState >
 ComponentWithStates (COMPONENT_TYPE type)
 
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 
 Component (const Component &)=delete
 
Componentoperator= (const Component &)=delete
 

Public Attributes

Data Members
 
- Public Attributes inherited from Leviathan::ComponentWithStates< PositionState >
bool StateMarked
 
float InterpolatingStartTime
 
int InterpolatingRemoteStartTick
 
PositionState * InterpolatingStartState
 
PositionState * InterpolatingEndState
 
- Public Attributes inherited from Leviathan::Component
bool Marked
 
const COMPONENT_TYPE Type
 Type of this component, used for network serialization. More...
 

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::Position
 

Detailed Description

Entity has position and direction it is looking at.

Note
Any possible locking needs to be handled by the caller
Todo:
Initial position states should not be generated or initially sent data shouldn't have the state instead the first state would be guaranteed to be sent after it

Definition at line 45 of file Components.h.

Member Typedef Documentation

◆ StateT

using Leviathan::Position::StateT = PositionState

Definition at line 67 of file Components.h.

Constructor & Destructor Documentation

◆ Position()

Leviathan::Position::Position ( const Data data)
inline

Creates at specific position.

Definition at line 60 of file Components.h.

60 : ComponentWithStates(TYPE), Members(data) {}
static constexpr auto TYPE
Definition: Components.h:66

Member Function Documentation

◆ REFERENCE_HANDLE_UNCOUNTED_TYPE()

Leviathan::Position::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Position  )

Member Data Documentation

◆ Members

Data Leviathan::Position::Members

Definition at line 64 of file Components.h.

◆ TYPE

constexpr auto Leviathan::Position::TYPE = COMPONENT_TYPE::Position
static

Definition at line 66 of file Components.h.


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