final case class ClientImpl() extends Client with Product with Serializable
- Alphabetic
- By Inheritance
- ClientImpl
- Serializable
- Serializable
- Product
- Equals
- Client
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClientImpl()
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
addPlayerToLobby(player: BasePlayer): Unit
Adds a player to the lobby.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bind(actorRef: ActorRef): Unit
Binds this instance with the input ActorRef.
Binds this instance with the input ActorRef.
- actorRef
The ActorRef
- Definition Classes
- ClientImpl → Client
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closeLobby(byUser: Boolean = true): Unit
Closes the lobby.
Closes the lobby.
- byUser
If the lobby have been closed by the user or not.
- Definition Classes
- ClientImpl → Client
-
def
connect(address: String, port: Int): Promise[Boolean]
Connects to a server.
Connects to a server.
- address
The server address.
- port
The port address.
- returns
Promise that completes with true if the connection has been successfully established; otherwise false.
- Definition Classes
- ClientImpl → Client
-
def
enterLobby(username: String, lobbyContext: LobbyContext): Promise[Boolean]
Requests to enter the lobby.
Requests to enter the lobby.
- username
The username of the player.
- lobbyContext
The lobby context.
- returns
Promise that completes with true if the client have successfully entered the lobby; otherwise false.
- Definition Classes
- ClientImpl → Client
-
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
getLobbyPlayers: Seq[BasePlayer]
Gets the lobby players.
-
def
getUUID: String
Gets the uuid of the cell entity that represents this client.
Gets the uuid of the cell entity that represents this client.
- returns
The uuid
- Definition Classes
- ClientImpl → Client
-
def
initGame(levelContext: MultiPlayerLevelContext): Unit
Initializes the game.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
kill(): Unit
Kills this instance.
Kills this instance.
- Definition Classes
- ClientImpl → Client
-
def
leaveGame(): Unit
Leaves the game.
Leaves the game.
- Definition Classes
- ClientImpl → Client
-
def
leaveLobby(): Unit
Requests to leave the lobby.
Requests to leave the lobby.
- Definition Classes
- ClientImpl → Client
-
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
notifyRedraw(entities: Seq[DrawableEntity]): Unit
Notifies the client to redraw.
-
def
removePlayerFromLobby(username: String): Unit
Removes a player from the lobby.
Removes a player from the lobby.
- username
The username of the player.
- Definition Classes
- ClientImpl → Client
-
def
signalPlayerInput(event: MouseEventWrapper): Unit
Forwards player into to the server.
-
def
startGame(uuid: String, levelInfo: LevelInfo, mapShape: MapShape): Unit
Starts the game.
Starts the game.
- uuid
The entity uuid assigned to this client by the server.
- levelInfo
The level info.
- mapShape
The shape of the level.
- Definition Classes
- ClientImpl → Client
-
def
stopGame(victorious: Boolean): Unit
Stops the game.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
val
timeout: Timeout
- Definition Classes
- Client
-
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( ... )
-
implicit
val
who: String
- Definition Classes
- Client