trait Controller extends AnyRef
Controller base trait
- Alphabetic
- By Inheritance
- Controller
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type LevelContextType = view.context.LevelContextType.Value
- type MultiPlayerMode = multiplayer.common.MultiPlayerMode.Value
Abstract Value Members
-
abstract
def
changeLevelSpeed(increment: Boolean = false): Unit
Changes the level speed by speeding up or slowing down depending on the input.
Changes the level speed by speeding up or slowing down depending on the input.
- increment
Determines whether the level speed needs to be increased or decreased.
-
abstract
def
getCustomLevels: List[LevelInfo]
Gets all custom levels filename.
Gets all custom levels filename.
- returns
The list of custom levels filename.
-
abstract
def
getSoundPath(soundType: manager.sounds.SoundsType.Value): Option[String]
Get requested sound path
Get requested sound path
- soundType
SoundsType.Value
- returns
Some(String) if path exists
-
abstract
def
initLevel(levelContext: LevelContext, chosenLevel: String, isCustom: Boolean = false): Try[Unit]
Initializes the level and the game engine.
Initializes the level and the game engine.
- levelContext
The level context.
- chosenLevel
The name of the chosen level.
- isCustom
True if the level is a custom one, false otherwise
-
abstract
def
initLobby(user: User, lobbyContext: LobbyContext): Promise[GenericResponse[Boolean]]
Initializes the multi-player lobby and the server or client.
Initializes the multi-player lobby and the server or client.
- user
The user config
- lobbyContext
The lobby context
- returns
Promise that completes with true if the lobby is initialized successfully; otherwise false.
-
abstract
def
initMultiPlayerLevel(levelInfo: LevelInfo): Promise[GenericResponse[Boolean]]
Initializes the multi-player level and the game engine.
Initializes the multi-player level and the game engine.
- levelInfo
The level info
- returns
Promise that completes with true if the level is initialized successfully; otherwise false.
-
abstract
def
pauseLevel(): Unit
Pauses the level.
-
abstract
def
removeLevel(name: String): Boolean
Delete from file a custom level
Delete from file a custom level
- name
custom level name
- returns
true, if remove file is completed with success
-
abstract
def
resumeLevel(): Unit
Resumes the level.
-
abstract
def
saveLevel(name: String, map: MapShape, victoryRules: levels.structure.VictoryRules.Value, collisionRules: levels.structure.CollisionRules.Value, entities: Seq[CellEntity]): Boolean
Saves a level.
Saves a level.
- name
level name
- map
level map shape MapShape
- victoryRules
level victory rule VictoryRule.Value
- collisionRules
level collision rule CollisionRule.Value
- entities
Seq of CellEntity
- returns
True, if the operation is successful; otherwise false.
-
abstract
def
startLevel(): Unit
Starts the level.
-
abstract
def
stopLevel(victory: Boolean = false): Unit
Stops the level.
Stops the level.
- victory
the level have been won or lost.
Concrete 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] )
-
def
getCampaignLevels: List[CampaignLevel]
Get campaign levels.
Get campaign levels.
- returns
List[CampaignLevel].
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMultiPlayerLevels: List[LevelInfo]
Gets all multi-player levels.
Gets all multi-player levels.
- returns
The list of multi-player levels.
-
def
getSinglePlayerLevels: List[LevelInfo]
Gets all the levels in the campaign.
Gets all the levels in the campaign.
- returns
The list of LevelInfo.
-
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()
-
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( ... )