|
Bomberman
|
#include <KeyboardComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| void | onStart () override |
| The entity or this component has just been enabled. More... | |
| KeyboardComponent (WAL::Entity &entity, ControllableComponent::Layout controllerLayout=ControllableComponent::Layout::KEYBOARD_0) | |
| Create a new keyboard component using custom keys. More... | |
| KeyboardComponent (const KeyboardComponent &)=default | |
| A Keyboard component is copy constructable. More... | |
| ~KeyboardComponent () override=default | |
| default destructor More... | |
| KeyboardComponent & | operator= (const KeyboardComponent &)=delete |
| A Keyboard component can't be assigned. More... | |
Public Member Functions inherited from WAL::Component | |
| Component & | operator= (const Component &)=delete |
| A component can't be assigned. More... | |
| virtual | ~Component ()=default |
| A virtual destructor. More... | |
| virtual void | onStop () |
| The entity or this component has just been disable. More... | |
Public Attributes | |
| Key | keySecondary = KEY_SPACE |
| jump key More... | |
| Key | keyBomb = KEY_E |
| bomb key More... | |
| Key | keyPause = KEY_ESCAPE |
| pause key More... | |
| Key | keyRight = KEY_D |
| move right key More... | |
| Key | keyLeft = KEY_A |
| move left key More... | |
| Key | keyUp = KEY_W |
| move up key More... | |
| Key | keyDown = KEY_S |
| move down key More... | |
| ControllableComponent::Layout | layout |
| Layout. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::Component | |
| Component (Entity &entity) | |
| A component can't be instantiated, it should be derived. More... | |
| Component (const Component &)=default | |
| A component can't be instantiated, it should be derived. More... | |
Protected Attributes inherited from WAL::Component | |
| Entity & | _entity |
| The entity that own this component. More... | |
|
explicit |
Create a new keyboard component using custom keys.
|
default |
A Keyboard component is copy constructable.
|
overridedefault |
default destructor
|
overridevirtual |
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implements WAL::Component.
|
overridevirtual |
The entity or this component has just been enabled.
Reimplemented from WAL::Component.
|
delete |
A Keyboard component can't be assigned.
| Key BBM::KeyboardComponent::keyBomb = KEY_E |
bomb key
| Key BBM::KeyboardComponent::keyDown = KEY_S |
move down key
| Key BBM::KeyboardComponent::keyLeft = KEY_A |
move left key
| Key BBM::KeyboardComponent::keyPause = KEY_ESCAPE |
pause key
| Key BBM::KeyboardComponent::keyRight = KEY_D |
move right key
| Key BBM::KeyboardComponent::keySecondary = KEY_SPACE |
jump key
| Key BBM::KeyboardComponent::keyUp = KEY_W |
move up key
| ControllableComponent::Layout BBM::KeyboardComponent::layout |
Layout.
1.8.17