Packages

trait Controller extends AnyRef

Controller base trait

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

Type Members

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

Abstract Value Members

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

  2. abstract def getCustomLevels: List[LevelInfo]

    Gets all custom levels filename.

    Gets all custom levels filename.

    returns

    The list of custom levels filename.

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

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

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

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

  7. abstract def pauseLevel(): Unit

    Pauses the level.

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

  9. abstract def resumeLevel(): Unit

    Resumes the level.

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

  11. abstract def startLevel(): Unit

    Starts the level.

  12. abstract def stopLevel(victory: Boolean = false): Unit

    Stops the level.

    Stops the level.

    victory

    the level have been won or lost.

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. def getCampaignLevels: List[CampaignLevel]

    Get campaign levels.

    Get campaign levels.

    returns

    List[CampaignLevel].

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

    Gets all multi-player levels.

    Gets all multi-player levels.

    returns

    The list of multi-player levels.

  12. def getSinglePlayerLevels: List[LevelInfo]

    Gets all the levels in the campaign.

    Gets all the levels in the campaign.

    returns

    The list of LevelInfo.

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped