Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ComponentWithStates< StateT > Class Template Reference

Alternative base class for Component that creates distinct state objects. More...

#include <ComponentState.h>

+ Inheritance diagram for Leviathan::ComponentWithStates< StateT >:

Public Member Functions

 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

bool StateMarked = true
 
float InterpolatingStartTime = 0.f
 
int InterpolatingRemoteStartTick
 
StateT * InterpolatingStartState = nullptr
 
StateT * InterpolatingEndState = nullptr
 
- Public Attributes inherited from Leviathan::Component
bool Marked
 
const COMPONENT_TYPE Type
 Type of this component, used for network serialization. More...
 

Detailed Description

template<class StateT>
class Leviathan::ComponentWithStates< StateT >

Alternative base class for Component that creates distinct state objects.

Definition at line 12 of file ComponentState.h.

Constructor & Destructor Documentation

◆ ComponentWithStates()

template<class StateT>
Leviathan::ComponentWithStates< StateT >::ComponentWithStates ( COMPONENT_TYPE  type)
inline

Definition at line 15 of file ComponentState.h.

15 : Component(type){}
Component(COMPONENT_TYPE type)
Definition: Component.h:55

Member Data Documentation

◆ InterpolatingEndState

template<class StateT>
StateT* Leviathan::ComponentWithStates< StateT >::InterpolatingEndState = nullptr

Definition at line 29 of file ComponentState.h.

◆ InterpolatingRemoteStartTick

template<class StateT>
int Leviathan::ComponentWithStates< StateT >::InterpolatingRemoteStartTick

Definition at line 27 of file ComponentState.h.

◆ InterpolatingStartState

template<class StateT>
StateT* Leviathan::ComponentWithStates< StateT >::InterpolatingStartState = nullptr

Definition at line 28 of file ComponentState.h.

◆ InterpolatingStartTime

template<class StateT>
float Leviathan::ComponentWithStates< StateT >::InterpolatingStartTime = 0.f

Definition at line 26 of file ComponentState.h.

◆ StateMarked

template<class StateT>
bool Leviathan::ComponentWithStates< StateT >::StateMarked = true

True when there are states in a StateHolder for this entity, which haven't been shown yet.

Note
This is true by default to always apply the initial position even if there are no states

Definition at line 21 of file ComponentState.h.


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