|
|
| KeyboardController (SDL_Scancode up, SDL_Scancode down, SDL_Scancode left, SDL_Scancode right, SDL_Scancode fire, Vector2D fireVelocity) |
| |
| void | init () override |
| |
| void | update () override |
| |
|
void | modifyAtkSpeed (int8_t modifier) |
| |
|
virtual void | draw () |
| |
|
|
TransformComponent * | transform |
| |
|
const uint8_t * | keystates = SDL_GetKeyboardState(NULL) |
| |
|
SDL_Scancode | up |
| |
|
SDL_Scancode | down |
| |
|
SDL_Scancode | left |
| |
|
SDL_Scancode | right |
| |
|
SDL_Scancode | fire |
| |
|
SpriteComponent * | sprite |
| |
|
uint32_t | lastFireTime = 0 |
| |
|
uint32_t | fireCooldown = 1000 |
| |
|
Entity * | entity |
| |
◆ init()
| void KeyboardController::init |
( |
| ) |
|
|
overridevirtual |
◆ update()
| void KeyboardController::update |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: