class ViewImpl extends View with PrimaryStageListener
View implementation, holding the main stage and the current scene
- Alphabetic
- By Inheritance
- ViewImpl
- PrimaryStageListener
- StatsSceneListener
- SettingsSceneListener
- MultiPlayerSceneListener
- MultiPlayerLevelSelectionSceneListener
- MultiPlayerLobbySceneListener
- EditorLevelSelectionSceneListener
- EditorSceneListener
- LevelSelectionSceneListener
- LevelSceneListener
- View
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ViewImpl(app: JFXApp)
- app
a reference to the JFXApp, necessary to the correct setup of the whole application
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
-
implicit
val
executionContextExecutor: ExecutionContextExecutor
Implicit executor
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getCampaignLevels: List[CampaignLevel]
This method retrieve the campaign level info
This method retrieve the campaign level info
- returns
a list of CampaignLevel
- Definition Classes
- ViewImpl → StatsSceneListener
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCustomLevels: List[LevelInfo]
This method retrieves the custom levels that must be shown as node
This method retrieves the custom levels that must be shown as node
- returns
a list of custom levels
- Definition Classes
- ViewImpl → EditorLevelSelectionSceneListener
-
def
getMultiPlayerLevels: List[LevelInfo]
This method retrieves the multiplayer levels that must be shown as node
This method retrieves the multiplayer levels that must be shown as node
- returns
a list of multiplayer levels
- Definition Classes
- ViewImpl → MultiPlayerLevelSelectionSceneListener
-
def
getSingleLevels: List[LevelInfo]
This method retrieves the levels that must be shown as node
This method retrieves the levels that must be shown as node
- returns
a list of LevelInfo
- Definition Classes
- ViewImpl → LevelSelectionSceneListener
-
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
onDeleteLevel(level: String, callback: (Boolean) ⇒ Unit): Unit
Called when the user wants to delete a custom level
Called when the user wants to delete a custom level
- level
the level name
- callback
the callback
- Definition Classes
- ViewImpl → EditorLevelSelectionSceneListener
- def onDisplayError(message: String): Unit
-
def
onLevelContextCreated(levelContext: LevelContext, level: String, isCustom: Boolean = false): Boolean
This method called when the level context has been created
This method called when the level context has been created
- levelContext
the new level context
- level
the new level name
- isCustom
true if the level is custom, false otherwise
- returns
true if the controller level initialization goes fine; otherwise false
- Definition Classes
- ViewImpl → LevelSelectionSceneListener
-
def
onLevelSpeedChanged(increment: Boolean): Unit
Called when the level speed changes
Called when the level speed changes
- increment
If the speed needs to increased or decreased
- Definition Classes
- ViewImpl → LevelSceneListener
-
def
onLobbyRequest(user: User, levelInfo: Option[LevelInfo], lobbyContext: LobbyContext, callback: (User, Option[LevelInfo], LobbyContext, GenericResponse[Boolean]) ⇒ Unit): Unit
After checking the controller, we ask to enter the lobby asynchronously and call the callback function after the future result
After checking the controller, we ask to enter the lobby asynchronously and call the callback function after the future result
- user
the user requesting to enter the lobby
- levelInfo
the chosen level
- lobbyContext
the lobby context, which may be used by the server to configure existing lobby users
- callback
the callback
- Definition Classes
- ViewImpl → MultiPlayerSceneListener
-
def
onPauseLevel(): Unit
Called when the level gets paused
Called when the level gets paused
- Definition Classes
- ViewImpl → LevelSceneListener
-
def
onResumeLevel(): Unit
Called when the level gets resume
Called when the level gets resume
- Definition Classes
- ViewImpl → LevelSceneListener
-
def
onSaveLevel(name: String, map: MapShape, victoryRules: controller.levels.structure.VictoryRules.Value, collisionRules: controller.levels.structure.CollisionRules.Value, entities: Seq[CellEntity], callback: (Boolean) ⇒ Unit): Unit
Called when the user wants to save the level after the name has been chosen
Called when the user wants to save the level after the name has been chosen
- name
the chosen level name
- map
the chosen level map
- victoryRules
the chosen victory rules
- collisionRules
the chosen collision rules
- entities
the inserted entities
- callback
the callback
- Definition Classes
- ViewImpl → EditorSceneListener
-
def
onStartLevel(): Unit
Called when the level gets started
Called when the level gets started
- Definition Classes
- ViewImpl → LevelSceneListener
-
def
onStartMultiPlayerGameClick(levelInfo: LevelInfo): Unit
Called once per lobby.
Called once per lobby. This will eventually lead to the server init. The server will eventually respond using the previously passed lobby context
- levelInfo
the level info requested by the controller
- Definition Classes
- ViewImpl → MultiPlayerLobbySceneListener
-
def
onStopLevel(victory: Boolean): Unit
Called when the level gets stopped
Called when the level gets stopped
- victory
true if we won the level, false otherwise
- Definition Classes
- ViewImpl → LevelSceneListener
-
def
setController(controller: Controller): Unit
Setter.
-
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( ... )