Go to the documentation of this file.
30 static std::array<std::string, 4>
colors;
36 static void createTile(
const std::shared_ptr<WAL::Scene>& drawable,
WAL::Entity &player,
int color,
int playerCount);
42 void onSelfUpdate(std::chrono::nanoseconds dtime)
override;
static void createTile(const std::shared_ptr< WAL::Scene > &drawable, WAL::Entity &player, int color, int playerCount)
Create ingame tile.
Definition: LobbySystem.cpp:220
static bool playersAreReady(WAL::Scene &scene)
Check if every player is ready.
Definition: LobbySystem.cpp:177
bool _canJoin()
Definition: LobbySystem.cpp:113
void addAI()
Add an AI to the game.
Definition: LobbySystem.cpp:122
static std::array< std::string, 4 > colors
Definition: LobbySystem.hpp:30
Layout
Definition: ControllableComponent.hpp:20
A system to handle Health entities.
Definition: LobbySystem.hpp:17
Definition: AnimationsComponent.cpp:9
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
An entity of the WAL's ECS.
Definition: Entity.hpp:20
void _nextColor(WAL::ViewEntity< LobbyComponent, Drawable2DComponent > &entity)
Definition: LobbySystem.cpp:53
static void addController(WAL::Entity &player, ControllableComponent::Layout layout)
Add a controller for the player.
Definition: LobbySystem.cpp:192
void unloadLobby()
Reset the lobby scene to it's default state.
Definition: LobbySystem.cpp:312
static void switchToGame(WAL::Wal &wal)
Inform the engine that the next scene should be the game scene and load it.
Definition: LobbySystem.cpp:285
LobbySystem(WAL::Wal &wal)
A default constructor.
Definition: LobbySystem.cpp:49
void removeAI()
Remove an AI from the game.
Definition: LobbySystem.cpp:139
void onSelfUpdate(std::chrono::nanoseconds dtime) override
A method called after all entities that this system manage has been updated.
Definition: LobbySystem.cpp:163
LobbySystem & operator=(const LobbySystem &)=delete
A system is not assignable.
static std::array< RAY::Color, 4 > _rayColors
Definition: LobbySystem.hpp:26
A base system of WAL.
Definition: System.hpp:22
Represent a single scene that contains entities.
Definition: Scene.hpp:17
~LobbySystem() override=default
A default destructor.
std::array< bool, 4 > _colorTaken
Definition: LobbySystem.hpp:28
void onUpdate(WAL::ViewEntity< LobbyComponent, Drawable2DComponent > &entity, std::chrono::nanoseconds dtime) override
Definition: LobbySystem.cpp:68