Bomberman
Public Member Functions | Public Attributes | List of all members
BBM::ResumeLobbyComponent Class Reference

#include <ResumeLobbyComponent.hpp>

Inheritance diagram for BBM::ResumeLobbyComponent:
Collaboration diagram for BBM::ResumeLobbyComponent:

Public Member Functions

Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 ResumeLobbyComponent (WAL::Entity &entity, int playerNumber, WAL::Entity &button, WAL::Entity &tile, int pColor)
 Create a new lobby component. More...
 
 ResumeLobbyComponent (const ResumeLobbyComponent &)=default
 A lobby component is copyable. More...
 
 ~ResumeLobbyComponent () override=default
 A default destructor. More...
 
ResumeLobbyComponentoperator= (const ResumeLobbyComponent &)=delete
 A lobby component is not assignable. More...
 
- Public Member Functions inherited from WAL::Component
Componentoperator= (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 playerColor
 The color of the player (as an index) More...
 
bool ready = false
 Is this player ready. More...
 
WAL::EntityreadyButton
 The entity containing the ready display. More...
 
WAL::EntitycoloredTile
 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...
 

Constructor & Destructor Documentation

◆ ResumeLobbyComponent() [1/2]

BBM::ResumeLobbyComponent::ResumeLobbyComponent ( WAL::Entity entity,
int  playerNumber,
WAL::Entity button,
WAL::Entity tile,
int  pColor 
)
explicit

Create a new lobby component.

◆ ResumeLobbyComponent() [2/2]

BBM::ResumeLobbyComponent::ResumeLobbyComponent ( const ResumeLobbyComponent )
default

A lobby component is copyable.

◆ ~ResumeLobbyComponent()

BBM::ResumeLobbyComponent::~ResumeLobbyComponent ( )
overridedefault

A default destructor.

Member Function Documentation

◆ clone()

WAL::Component * BBM::ResumeLobbyComponent::clone ( WAL::Entity entity) const
overridevirtual

Clone a component for another or the same entity.

Parameters
entityThe entity that owns the ne component.

Implements WAL::Component.

◆ operator=()

ResumeLobbyComponent& BBM::ResumeLobbyComponent::operator= ( const ResumeLobbyComponent )
delete

A lobby component is not assignable.

Member Data Documentation

◆ coloredTile

WAL::Entity& BBM::ResumeLobbyComponent::coloredTile

The colored rectangle behind the player.

◆ lastInput

std::chrono::time_point<std::chrono::steady_clock> BBM::ResumeLobbyComponent::lastInput

The time of last input that this lobby player has made.

◆ layout

ControllableComponent::Layout BBM::ResumeLobbyComponent::layout = ControllableComponent::NONE

The layout used for this player.

◆ playerColor

int BBM::ResumeLobbyComponent::playerColor

The color of the player (as an index)

◆ playerID

int BBM::ResumeLobbyComponent::playerID

The ID of the lobby player (from 0 to 3)

◆ ready

bool BBM::ResumeLobbyComponent::ready = false

Is this player ready.

◆ readyButton

WAL::Entity& BBM::ResumeLobbyComponent::readyButton

The entity containing the ready display.


The documentation for this class was generated from the following files: