Packages

trait Lobby[T <: Player] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Lobby
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addPlayer(player: T): Unit

    Adds a new player.

    Adds a new player.

    player

    The player

  2. abstract def addPlayers(players: T*): Unit

    Adds new players.

    Adds new players.

    players

    The list of players

  3. 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.

  4. abstract def getPlayers: Seq[T]

    Gets all players.

    Gets all players.

    returns

    The set of all players.

  5. abstract def removePlayer(username: String): Unit

    Removes a player.

    Removes a player.

    username

    The username of the player to remove.

Concrete Value Members

  1. def clear(): Unit

    Clears this instance.

  2. def isFull: Boolean

    Defines if the lobby is full or not.

    Defines if the lobby is full or not.

    returns

    True if the lobby is full; otherwise false.