Packages

case class ControllerImpl() extends Controller with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Controller, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ControllerImpl
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Controller
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ControllerImpl()

Type Members

  1. type LevelContextType = view.context.LevelContextType.Value
    Definition Classes
    Controller
  2. type MultiPlayerMode = multiplayer.common.MultiPlayerMode.Value
    Definition Classes
    Controller

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

    Definition Classes
    ControllerImplController
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. var engine: Option[GameEngine]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def getCampaignLevels: List[CampaignLevel]

    Get campaign levels.

    Get campaign levels.

    returns

    List[CampaignLevel].

    Definition Classes
    Controller
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getCustomLevels: List[LevelInfo]

    Gets all custom levels filename.

    Gets all custom levels filename.

    returns

    The list of custom levels filename.

    Definition Classes
    ControllerImplController
  13. def getMultiPlayerLevels: List[LevelInfo]

    Gets all multi-player levels.

    Gets all multi-player levels.

    returns

    The list of multi-player levels.

    Definition Classes
    Controller
  14. def getSinglePlayerLevels: List[LevelInfo]

    Gets all the levels in the campaign.

    Gets all the levels in the campaign.

    returns

    The list of LevelInfo.

    Definition Classes
    Controller
  15. 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

    Definition Classes
    ControllerImplController
  16. 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

    Definition Classes
    ControllerImplController
  17. 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.

    Definition Classes
    ControllerImplController
  18. 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.

    Definition Classes
    ControllerImplController
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. var lastLoadedLevel: Option[String]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def pauseLevel(): Unit

    Pauses the level.

    Pauses the level.

    Definition Classes
    ControllerImplController
  25. 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

    Definition Classes
    ControllerImplController
  26. def resumeLevel(): Unit

    Resumes the level.

    Resumes the level.

    Definition Classes
    ControllerImplController
  27. 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.

    Definition Classes
    ControllerImplController
  28. def startLevel(): Unit

    Starts the level.

    Starts the level.

    Definition Classes
    ControllerImplController
  29. def stopLevel(victory: Boolean = false): Unit

    Stops the level.

    Stops the level.

    victory

    the level have been won or lost.

    Definition Classes
    ControllerImplController
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  34. implicit val who: String

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Controller

Inherited from AnyRef

Inherited from Any

Ungrouped