mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-27 08:13:18 +00:00
added some static function in lobbysystem (createtile) and fixed some old changes not necessary now
This commit is contained in:
@@ -17,8 +17,6 @@ namespace BBM
|
||||
class LobbySystem : public WAL::System<LobbyComponent, Drawable2DComponent>
|
||||
{
|
||||
private:
|
||||
//! @brief Add a controller for the player.
|
||||
static void _addController(WAL::Entity &player, ControllableComponent::Layout layout);
|
||||
|
||||
void _nextColor(WAL::ViewEntity<LobbyComponent, Drawable2DComponent> &entity);
|
||||
|
||||
@@ -29,6 +27,11 @@ namespace BBM
|
||||
public:
|
||||
static std::array<std::string, 4> colors;
|
||||
|
||||
//! @brief Add a controller for the player.
|
||||
static void addController(WAL::Entity &player, ControllableComponent::Layout layout);
|
||||
|
||||
static void createTile(std::shared_ptr<WAL::Scene> scene, WAL::Entity &player, int color, int playerCount);
|
||||
|
||||
//! @inherit
|
||||
void onUpdate(WAL::ViewEntity<LobbyComponent, Drawable2DComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user