Go to the documentation of this file.
31 std::chrono::time_point<std::chrono::steady_clock>
lastInput;
bool ready
Is this player ready.
Definition: LobbyComponent.hpp:25
Component * clone(WAL::Entity &entity) const override
Clone a component for another or the same entity.
Definition: LobbyComponent.cpp:16
Layout
Definition: ControllableComponent.hpp:20
Represent a single component of WAL.
Definition: Component.hpp:17
Definition: AnimationsComponent.cpp:9
An entity of the WAL's ECS.
Definition: Entity.hpp:20
LobbyComponent(WAL::Entity &entity, int playerNumber, WAL::Entity &button, WAL::Entity &tile)
Create a new lobby component.
Definition: LobbyComponent.cpp:9
LobbyComponent & operator=(const LobbyComponent &)=delete
A lobby component is not assignable.
Component(Entity &entity)
A component can't be instantiated, it should be derived.
Definition: Component.cpp:9
~LobbyComponent() override=default
A default destructor.
ControllableComponent::Layout layout
The layout used for this player.
Definition: LobbyComponent.hpp:19
int color
The color of the player (as an index)
Definition: LobbyComponent.hpp:23
@ NONE
Definition: ControllableComponent.hpp:22
int playerID
The ID of the lobby player (from 0 to 3)
Definition: LobbyComponent.hpp:21
WAL::Entity & readyButton
The entity containing the ready display.
Definition: LobbyComponent.hpp:27
Definition: LobbyComponent.hpp:15
std::chrono::time_point< std::chrono::steady_clock > lastInput
The time of last input that this lobby player has made.
Definition: LobbyComponent.hpp:31
WAL::Entity & coloredTile
The colored rectangle behind the player.
Definition: LobbyComponent.hpp:29