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