trait Lobby[T <: Player] extends AnyRef
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lobby
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
addPlayer(player: T): Unit
Adds a new player.
Adds a new player.
- player
The player
-
abstract
def
addPlayers(players: T*): Unit
Adds new players.
Adds new players.
- players
The list of players
-
abstract
def
getPlayer(username: String): Option[T]
Gets a player.
Gets a player.
- username
The username of the player to get
- returns
The player if it's found, otherwise none.
-
abstract
def
getPlayers: Seq[T]
Gets all players.
Gets all players.
- returns
The set of all players.
-
abstract
def
removePlayer(username: String): Unit
Removes a player.
Removes a player.
- username
The username of the player to remove.