|
Bomberman
|
#include <ControllableComponent.hpp>
Public Types | |
| enum | Layout { NONE, KEYBOARD_0, KEYBOARD_1, GAMEPAD_0, GAMEPAD_1, GAMEPAD_2, GAMEPAD_3, AI } |
Public Member Functions | |
| void | disable () |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| ControllableComponent (WAL::Entity &entity) | |
| Initialize a new controllable component. More... | |
| ControllableComponent (WAL::Entity &entity, bool isDisabled) | |
| Initialize a new controllable component. More... | |
| ControllableComponent (const ControllableComponent &)=default | |
| A Controllable component is copy constructable. More... | |
| ~ControllableComponent () override=default | |
| default destructor More... | |
| ControllableComponent & | operator= (const ControllableComponent &)=delete |
| A Controllable 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 | onStart () |
| The entity or this component has just been enabled. More... | |
| virtual void | onStop () |
| The entity or this component has just been disable. More... | |
Public Attributes | |
| bool | disabled |
| True if the entity should not be controllable. More... | |
| Vector2f | move |
| The X and Z abscis of the movement. More... | |
| bool | secondary = false |
| input value for secondary inputs. More... | |
| bool | bomb = false |
| input value for bomb and selection More... | |
| bool | pause = false |
| input value for pause More... | |
| Layout | layout = NONE |
| The layout used for this controllable. More... | |
| bool | fastClick = false |
| True if buttons should be triggered every frame where the key is down, false if the button should only be triggered once the key is released. 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 |
Initialize a new controllable component.
| BBM::ControllableComponent::ControllableComponent | ( | WAL::Entity & | entity, |
| bool | isDisabled | ||
| ) |
Initialize a new controllable component.
|
default |
A Controllable 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.
| void BBM::ControllableComponent::disable | ( | ) |
|
delete |
A Controllable component can't be assigned.
| bool BBM::ControllableComponent::bomb = false |
input value for bomb and selection
| bool BBM::ControllableComponent::disabled |
True if the entity should not be controllable.
| bool BBM::ControllableComponent::fastClick = false |
True if buttons should be triggered every frame where the key is down, false if the button should only be triggered once the key is released.
| Vector2f BBM::ControllableComponent::move |
The X and Z abscis of the movement.
| bool BBM::ControllableComponent::pause = false |
input value for pause
| bool BBM::ControllableComponent::secondary = false |
input value for secondary inputs.
1.8.17