abstract class AbstractLobby[T <: Player] extends Lobby[T]
- Alphabetic
- By Inheritance
- AbstractLobby
- Lobby
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AbstractLobby(lobbyContext: LobbyContext)
Abstract Value Members
-
abstract
def
addPlayer(player: T): Unit
Adds a new player.
-
abstract
def
addPlayers(players: T*): Unit
Adds new 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.
- Definition Classes
- Lobby
-
abstract
def
getPlayers: Seq[T]
Gets all players.
-
abstract
def
removePlayer(username: String): Unit
Removes a player.
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.
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
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.
- 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.
-
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).
-
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.
-
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.
-
val
players: Map[String, T]
The map that holds the players.
The map that holds the players.
- Attributes
- protected
- Definition Classes
- Lobby
-
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( ... )