TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
KeyboardControllerComponent Class Reference

moving animation More...

#include <KeyboardControllerComponent.h>

Inheritance diagram for KeyboardControllerComponent:
Inheritance graph
[legend]
Collaboration diagram for KeyboardControllerComponent:
Collaboration graph
[legend]

Public Member Functions

 KeyboardControllerComponent (InputManager *inputManager, SDL_KeyCode walkUpKey, SDL_KeyCode walkLeftKey, SDL_KeyCode walkRightKey, SDL_KeyCode walkDownKey)
 
void init () override
 
void update (float deltaTime) override
 
std::string GetComponentName () override
 
- Public Member Functions inherited from BaseComponent
virtual void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
virtual void showGUI ()
 

Public Attributes

InputManager_inputManager = nullptr
 
TransformComponenttransform = nullptr
 
AnimatorComponentanimator = nullptr
 
RigidBodyComponentrigidbody = nullptr
 
SpriteComponentsprite = nullptr
 
SDL_KeyCode walkUpKey = SDLK_UNKNOWN
 
SDL_KeyCode walkLeftKey = SDLK_UNKNOWN
 
SDL_KeyCode walkRightKey = SDLK_UNKNOWN
 
SDL_KeyCode walkDownKey = SDLK_UNKNOWN
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
ComponentID id = 0u
 

Detailed Description

moving animation

Member Function Documentation

◆ GetComponentName()

std::string KeyboardControllerComponent::GetComponentName ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init()

void KeyboardControllerComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update()

void KeyboardControllerComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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