java.lang.Object
it.polimi.ingsw.am13.model.player.PlayerLobby
- All Implemented Interfaces:
Serializable
Immutable class representing a player not yet in game.
It stores only the information about nickname and token chosen.
2 objects of this class are equals iff they have same nickname and color of token
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayerLobby
(String nickname, ColorToken colorToken) PlayerLobby
(String nickname, Token token) -
Method Summary
-
Field Details
-
nickname
Player's nickname. -
token
Player's token (indicates their color).
-
-
Constructor Details
-
PlayerLobby
- Parameters:
nickname
- Nickname of the playertoken
- Token chosen by the player
-
PlayerLobby
- Parameters:
nickname
- Nickname of the playercolorToken
- Color of the token chosen by the player
-
-
Method Details