|
Bomberman
|
#include <LobbyComponent.hpp>
Public Member Functions | |
| Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| LobbyComponent (WAL::Entity &entity, int playerNumber, WAL::Entity &button, WAL::Entity &tile) | |
| Create a new lobby component. More... | |
| LobbyComponent (const LobbyComponent &)=default | |
| A lobby component is copyable. More... | |
| ~LobbyComponent () override=default | |
| A default destructor. More... | |
| LobbyComponent & | operator= (const LobbyComponent &)=delete |
| A lobby component is not assignable. 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 | |
| ControllableComponent::Layout | layout = ControllableComponent::NONE |
| The layout used for this player. More... | |
| int | playerID |
| The ID of the lobby player (from 0 to 3) More... | |
| int | color |
| The color of the player (as an index) More... | |
| bool | ready = false |
| Is this player ready. More... | |
| WAL::Entity & | readyButton |
| The entity containing the ready display. More... | |
| WAL::Entity & | coloredTile |
| The colored rectangle behind the player. More... | |
| std::chrono::time_point< std::chrono::steady_clock > | lastInput |
| The time of last input that this lobby player has made. 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 lobby component.
|
default |
A lobby component is copyable.
|
overridedefault |
A default destructor.
|
overridevirtual |
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implements WAL::Component.
|
delete |
A lobby component is not assignable.
| int BBM::LobbyComponent::color |
The color of the player (as an index)
| WAL::Entity& BBM::LobbyComponent::coloredTile |
The colored rectangle behind the player.
| std::chrono::time_point<std::chrono::steady_clock> BBM::LobbyComponent::lastInput |
The time of last input that this lobby player has made.
| ControllableComponent::Layout BBM::LobbyComponent::layout = ControllableComponent::NONE |
The layout used for this player.
| int BBM::LobbyComponent::playerID |
The ID of the lobby player (from 0 to 3)
| bool BBM::LobbyComponent::ready = false |
Is this player ready.
| WAL::Entity& BBM::LobbyComponent::readyButton |
The entity containing the ready display.
1.8.17