case class GameLobby[T <: Player](lobbyContext: LobbyContext) extends AbstractLobby[T] with Product with Serializable
- Alphabetic
- By Inheritance
- GameLobby
- Serializable
- Serializable
- Product
- Equals
- AbstractLobby
- Lobby
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GameLobby(lobbyContext: LobbyContext)
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
-
def
addPlayer(player: T): Unit
Adds a new player.
-
def
addPlayers(players: T*): Unit
Adds new players.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
Clears this instance.
Clears this instance.
- Definition Classes
- Lobby
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
getPlayer(username: String): Option[T]
Gets a player.
-
def
getPlayers: Seq[T]
Gets all players.
-
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.
- Definition Classes
- Lobby
-
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
- Definition Classes
- Lobby
-
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()
-
def
notifyGameStarted(levelContext: MultiPlayerLevelContext, levelInfo: LevelInfo): Unit
Notify to lobby context that the game is started passing the context of the level to play.
Notify to lobby context that the game is started passing the context of the level to play.
- levelContext
The level context.
- levelInfo
The level info.
- Definition Classes
- AbstractLobby
-
def
notifyLobbyClosed(byUser: Boolean = true): Unit
Notify to lobby context that the lobby have been closed.
Notify to lobby context that the lobby have been closed.
- byUser
If the lobby have been closed by the user or not (optional, default true).
- Definition Classes
- AbstractLobby
-
def
notifyUserAdded(user: User): Unit
Notify the lobby context that a new user have been added to the lobby.
Notify the lobby context that a new user have been added to the lobby.
- user
The user.
- Definition Classes
- AbstractLobby
-
def
notifyUserRemoved(user: User): Unit
Notify the lobby context that a user have been removed from the lobby.
Notify the lobby context that a user have been removed from the lobby.
- user
The user.
- Definition Classes
- AbstractLobby
-
val
players: Map[String, T]
The map that holds the players.
The map that holds the players.
- Attributes
- protected
- Definition Classes
- Lobby
-
def
removePlayer(username: String): Unit
Removes a player.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )