Packages

trait Client extends AnyRef

Trait representing a Client

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addPlayerToLobby(player: BasePlayer): Unit

    Adds a player to the lobby.

    Adds a player to the lobby.

    player

    The player to add.

  2. abstract def bind(actorRef: ActorRef): Unit

    Binds this instance with the input ActorRef.

    Binds this instance with the input ActorRef.

    actorRef

    The ActorRef

  3. abstract def closeLobby(byUser: Boolean = true): Unit

    Closes the lobby.

    Closes the lobby.

    byUser

    If the lobby have been closed by the user or not.

  4. abstract 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.

  5. abstract 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.

  6. abstract def getLobbyPlayers: Seq[BasePlayer]

    Gets the lobby players.

    Gets the lobby players.

    returns

    All players in the lobby.

  7. abstract 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

  8. abstract def initGame(levelContext: MultiPlayerLevelContext): Unit

    Initializes the game.

    Initializes the game.

    levelContext

    The level context.

  9. abstract def kill(): Unit

    Kills this instance.

  10. abstract def leaveGame(): Unit

    Leaves the game.

  11. abstract def leaveLobby(): Unit

    Requests to leave the lobby.

  12. abstract def notifyRedraw(entities: Seq[DrawableEntity]): Unit

    Notifies the client to redraw.

    Notifies the client to redraw.

    entities

    The entities to draw.

  13. abstract def removePlayerFromLobby(username: String): Unit

    Removes a player from the lobby.

    Removes a player from the lobby.

    username

    The username of the player.

  14. abstract def signalPlayerInput(event: MouseEventWrapper): Unit

    Forwards player into to the server.

    Forwards player into to the server.

    event

    The event.

  15. abstract 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.

  16. abstract def stopGame(victorious: Boolean): Unit

    Stops the game.

    Stops the game.

    victorious

    If this client won or not.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. implicit val timeout: Timeout
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  21. implicit val who: String

Inherited from AnyRef

Inherited from Any

Ungrouped