object ServerActor
Server actor helper object
- Alphabetic
- By Inheritance
- ServerActor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Connected(tempID: String) extends Product with Serializable
Replies to a client connection request initiating the handshaking
Replies to a client connection request initiating the handshaking
- tempID
The temp id
-
final
case class
GameEnded(victory: Boolean) extends Product with Serializable
Tells the client that the game is ended and what's the final result
Tells the client that the game is ended and what's the final result
- victory
If client won or lost.
-
final
case class
GameStarted(uuid: String, levelInfo: LevelInfo, mapShape: MapShape) extends Product with Serializable
Tells the client that the game have been started
Tells the client that the game have been started
- uuid
The uuid of the entity assigned to the client by the server that represents him in the game
- levelInfo
The level info
- mapShape
The map shape
-
final
case class
LobbyInfo(players: Seq[BasePlayer]) extends Product with Serializable
Replies to a client enter lobby request with its info
Replies to a client enter lobby request with its info
- players
The players already inside the lobby
-
final
case class
PlayerEnteredLobby(player: BasePlayer) extends Product with Serializable
Tells the client that a new player entered in the lobby
Tells the client that a new player entered in the lobby
- player
The new player
-
final
case class
PlayerLeftLobby(username: String) extends Product with Serializable
Tells the client that a player left the lobby
Tells the client that a player left the lobby
- username
The username of the player
-
final
case class
UpdateGame(entities: Seq[DrawableEntity]) extends Product with Serializable
Sends the client the entities to draw
Sends the client the entities to draw
- entities
The entities to draw
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
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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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 props(server: Server): Props
-
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( ... )
-
object
Disconnected extends Product with Serializable
Aborts an handshaking with a client
-
object
LobbyClosed extends Product with Serializable
Tells the client that the lobby have been closed
-
object
LobbyFull extends Product with Serializable
Aborts a client enter lobby request because the lobby is full
-
object
UsernameAlreadyTaken extends Product with Serializable
Aborts a client enter lobby request because the chosen username is already taken