Drop Table Engine 1.0
Loading...
Searching...
No Matches
ComponentInput Class Reference
Inheritance diagram for ComponentInput:

Public Types

enum  INPUT_STATE { LEFT , RIGHT , NONE }
 
enum  UP_DOWN_STATE { UP , DOWN , NONE }
 

Public Member Functions

 this ()
 
void Input ()
 
void Update ()
 
void Render ()
 
INPUT_STATE GetInputState ()
 
UP_DOWN_STATE GetUpDownState ()
 
bool GetSpaceDown ()
 

Static Public Member Functions

static ComponentInput LoadFromJSON (size_t id, JSONValue json)
 

Public Attributes

INPUT_STATE mInputState = INPUT_STATE.NONE
 
UP_DOWN_STATE mUpDownState = UP_DOWN_STATE.NONE
 
bool mSpacePressed = false
 
bool mSpaceDown = false
 

Member Enumeration Documentation

◆ INPUT_STATE

Enumerator
LEFT 
RIGHT 
NONE 

◆ UP_DOWN_STATE

Enumerator
UP 
DOWN 
NONE 

Constructor & Destructor Documentation

◆ this()

ComponentInput::this ( )
inline

Member Function Documentation

◆ GetInputState()

INPUT_STATE ComponentInput::GetInputState ( )
inline

◆ GetSpaceDown()

bool ComponentInput::GetSpaceDown ( )
inline

◆ GetUpDownState()

UP_DOWN_STATE ComponentInput::GetUpDownState ( )
inline

◆ Input()

void ComponentInput::Input ( )
inline

◆ LoadFromJSON()

static ComponentInput ComponentInput::LoadFromJSON ( size_t id,
JSONValue json )
inlinestatic

◆ Render()

void ComponentInput::Render ( )
inline

◆ Update()

void ComponentInput::Update ( )
inline

Member Data Documentation

◆ mInputState

INPUT_STATE ComponentInput::mInputState = INPUT_STATE.NONE

◆ mSpaceDown

bool ComponentInput::mSpaceDown = false

◆ mSpacePressed

bool ComponentInput::mSpacePressed = false

◆ mUpDownState

UP_DOWN_STATE ComponentInput::mUpDownState = UP_DOWN_STATE.NONE

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