package events
- Alphabetic
- Public
- All
Type Members
-
trait
EventWrapper extends AnyRef
Basic event wrapper
-
trait
EventWrapperObservable[T <: EventWrapper] extends AnyRef
This trait models a generic EventWrapper observable
This trait models a generic EventWrapper observable
- T
the EventWrapper type
-
trait
EventWrapperObserver[T <: EventWrapper] extends AnyRef
A basic observer to a EventWrapper
A basic observer to a EventWrapper
- T
the EventWrapper class or subclass
-
sealed
trait
GameStateEventWrapper extends EventWrapper
Possible game events
-
sealed
trait
LobbyEvent extends EventWrapper
Possible LobbyEvents
-
case class
LobbyEventWrapper(lobbyEvent: LobbyEvent, user: Option[User]) extends EventWrapper with Product with Serializable
Case class wrapping a LobbyEvent related to a User
Case class wrapping a LobbyEvent related to a User
- lobbyEvent
the lobby event
- user
the user the event refers to
-
case class
MouseEventWrapper(point: Point, uuid: String = "") extends EventWrapper with Product with Serializable
Case class which wraps a mouse event
Case class which wraps a mouse event
- point
the coordinates of the clicked point
- uuid
the uuid of the entity linked with this event, if None set empty string to prevent any.
-
sealed
trait
MultiPlayerGameStateEventWrapper extends GameStateEventWrapper
Possible game events as a server
-
case class
StartGame(multiPlayerLevelContext: MultiPlayerLevelContext, levelInfo: LevelInfo) extends LobbyEvent with Product with Serializable
LobbyEvent.
LobbyEvent. The game must be started.
- multiPlayerLevelContext
the provided multiplayer level context
- levelInfo
the provided levelInfo
Value Members
-
object
AbortLobby extends LobbyEvent with Product with Serializable
LobbyEvent.
LobbyEvent. The lobby has been aborted
-
object
GameLost extends GameStateEventWrapper with Product with Serializable
GameStateEventWrapper.
GameStateEventWrapper. The game has been lost.
-
object
GameLostAsServer extends MultiPlayerGameStateEventWrapper with Product with Serializable
GameStateEventWrapper.
GameStateEventWrapper. The game has been lost as a server.
-
object
GamePending extends GameStateEventWrapper with Product with Serializable
GameStateEventWrapper.
GameStateEventWrapper. The game is in pending state
-
object
GameWon extends GameStateEventWrapper with Product with Serializable
GameStateEventWrapper.
GameStateEventWrapper. The game has been won.
-
object
UserAdded extends LobbyEvent with Product with Serializable
LobbyEvent.
LobbyEvent. A user has been added to the lobby
-
object
UserRemoved extends LobbyEvent with Product with Serializable
LobbyEvent.
LobbyEvent. A user has been removed from the lobby