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.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
Clears this instance.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
maximumNumberOfPlayers: Int
The maximum number of players in the lobby.
The maximum number of players in the lobby.
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
players: Map[String, T]
The map that holds the players.
The map that holds the players.
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )