Object

cwinter.codecraft.core.api

TheGameMaster

Related Doc: package api

Permalink

object TheGameMaster extends GameMasterLike

Main entry point to start the game.

Linear Supertypes
GameMasterLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TheGameMaster
  2. GameMasterLike
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val DefaultMothership: DroneSpec

    Permalink

    Default number of modules for the initial mothership.

    Default number of modules for the initial mothership.

    Definition Classes
    GameMasterLike
  5. final val DefaultWorldSize: Rectangle

    Permalink

    Default dimensions for the size of the game world.

    Default dimensions for the size of the game world.

    Definition Classes
    GameMasterLike
  6. final val JavascriptAPIVersion: String("0.2")

    Permalink

    Identifies the current version of the JavaScript API.

    Identifies the current version of the JavaScript API. This value is incremented whenever a backwards incompatible change is made to the JavaScript API.

    Definition Classes
    GameMasterLike
  7. final val LargeWorldSize: Rectangle

    Permalink

    Larger than default dimensions for the size of the game world.

    Larger than default dimensions for the size of the game world.

    Definition Classes
    GameMasterLike
  8. final val SmallWorldSize: Rectangle

    Permalink

    Smaller than default dimensions for the size of the game world.

    Smaller than default dimensions for the size of the game world.

    Definition Classes
    GameMasterLike
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def bonusLevelAI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 3 AI.

    Returns a drone controller for the level 3 AI.

    Definition Classes
    GameMasterLike
  11. val bonusLevelMap: WorldMap

    Permalink

    The WorldMap for the bonus level.

    The WorldMap for the bonus level.

    Definition Classes
    GameMasterLike
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def connectToWebsocket(connectionString: String): WebsocketClient

    Permalink
    Definition Classes
    TheGameMaster → GameMasterLike
  14. def createReplaySimulator(replayText: String): DroneWorldSimulator

    Permalink

    Creates a new drone world simulator from a replay string.

    Creates a new drone world simulator from a replay string.

    Definition Classes
    GameMasterLike
  15. def createSimulator(mothership1: DroneControllerBase, mothership2: DroneControllerBase, map: WorldMap): DroneWorldSimulator

    Permalink

    Creates a new DroneWorldSimulator for a singleplayer game with the specified settings.

    Creates a new DroneWorldSimulator for a singleplayer game with the specified settings.

    Definition Classes
    GameMasterLike
  16. def createSimulator(mothership1: DroneControllerBase, mothership2: DroneControllerBase, worldSize: Rectangle, resourceClusters: Seq[(Int, Int)], spawn1: Vector2, spawn2: Vector2): DroneWorldSimulator

    Permalink

    Creates a new DroneWorldSimulator for a singleplayer game with the specified settings.

    Creates a new DroneWorldSimulator for a singleplayer game with the specified settings.

    Definition Classes
    GameMasterLike
  17. val defaultMap: WorldMap

    Permalink

    The default WorldMap.

    The default WorldMap.

    Definition Classes
    GameMasterLike
  18. def destroyerAI(): DroneControllerBase

    Permalink

    Returns a drone controller for the Destroyer AI.

    Returns a drone controller for the Destroyer AI.

    Definition Classes
    GameMasterLike
  19. var devEvents: (Int) ⇒ Seq[SimulatorEvent]

    Permalink
    Attributes
    protected
    Definition Classes
    GameMasterLike
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. val largeMap: WorldMap

    Permalink

    A large WorldMap.

    A large WorldMap.

    Definition Classes
    GameMasterLike
  27. def level1AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 1 AI.

    Returns a drone controller for the level 1 AI.

    Definition Classes
    GameMasterLike
  28. val level1Map: WorldMap

    Permalink

    The WorldMap for the first level.

    The WorldMap for the first level.

    Definition Classes
    GameMasterLike
  29. def level2AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 2 AI.

    Returns a drone controller for the level 2 AI.

    Definition Classes
    GameMasterLike
  30. val level2Map: WorldMap

    Permalink

    The WorldMap for the second level.

    The WorldMap for the second level.

    Definition Classes
    GameMasterLike
  31. def level4AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 4 AI

    Returns a drone controller for the level 4 AI

    Definition Classes
    GameMasterLike
  32. def level5AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 4 AI

    Returns a drone controller for the level 4 AI

    Definition Classes
    GameMasterLike
  33. def level6AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 4 AI

    Returns a drone controller for the level 4 AI

    Definition Classes
    GameMasterLike
  34. def level7AI(): DroneControllerBase

    Permalink

    Returns a drone controller for the level 4 AI

    Returns a drone controller for the level 4 AI

    Definition Classes
    GameMasterLike
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. def prepareMultiplayerGame(serverAddress: String): Future[(WorldMap, MultiplayerConfig)]

    Permalink

    Sets up a multiplayer game.

    Sets up a multiplayer game.

    Definition Classes
    GameMasterLike
  39. def prepareMultiplayerGame(serverAddress: String, controller: DroneControllerBase): Future[DroneWorldSimulator]

    Permalink

    Sets up a multiplayer game with the specified server.

    Sets up a multiplayer game with the specified server.

    Definition Classes
    GameMasterLike
  40. def replicatorAI(greedy: Boolean = false, confident: Boolean = false, aggressive: Boolean = false): DroneControllerBase

    Permalink

    Returns a drone controller for the Replicator AI.

    Returns a drone controller for the Replicator AI.

    Definition Classes
    GameMasterLike
  41. def run(simulator: DroneWorldSimulator): DroneWorldSimulator

    Permalink

    Runs the simulator.

    Runs the simulator.

    Definition Classes
    TheGameMaster → GameMasterLike
  42. def runGame(mothership1: DroneControllerBase, mothership2: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs a game with default settings.

    Runs a game with default settings.

    mothership1

    The drone controller for player 1.

    mothership2

    The drone controller for player 2.

    Definition Classes
    GameMasterLike
  43. def runL1vL2(): DroneWorldSimulator

    Permalink

    Runs a game with the level 1 AI versus the level 2 AI.

    Runs a game with the level 1 AI versus the level 2 AI.

    Definition Classes
    GameMasterLike
  44. def runL3vL3(): DroneWorldSimulator

    Permalink

    Runs a game with the level 3 AI versus the level 3 AI.

    Runs a game with the level 3 AI versus the level 3 AI.

    Definition Classes
    GameMasterLike
  45. def runLastReplay(): DroneWorldSimulator

    Permalink

    Runs the last recorded replay.

  46. def runLevel1(mothership1: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the first level.

    Runs the first level.

    mothership1

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  47. def runLevel2(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the second level.

    Runs the second level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  48. def runLevel3(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the third level.

    Runs the third level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  49. def runLevel4(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the fourth level.

    Runs the fourth level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  50. def runLevel5(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the fifth level.

    Runs the fifth level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  51. def runLevel6(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the sixth level.

    Runs the sixth level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  52. def runLevel7(mothership: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the seventh level.

    Runs the seventh level.

    mothership

    The controller for your mothership.

    Definition Classes
    GameMasterLike
  53. def runReplayFromFile(filepath: String): DroneWorldSimulator

    Permalink

    Runs the replay stored in the specified file.

  54. def setDevEvents(generator: (Int) ⇒ Seq[SimulatorEvent]): Unit

    Permalink
    Attributes
    protected[cwinter.codecraft]
    Definition Classes
    GameMasterLike
  55. val smallMap: WorldMap

    Permalink

    A small WorldMap.

    A small WorldMap.

    Definition Classes
    GameMasterLike
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  58. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def startGame(mothership1: DroneControllerBase, mothership2: DroneControllerBase): DroneWorldSimulator

    Permalink

    Starts a new game with two players.

    Starts a new game with two players.

    mothership1

    The controller for the initial mothership of player 1.

    mothership2

    The controller for the initial mothership of player 2.

    Definition Classes
    GameMasterLike
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.4.3) This method has been renamed to runGame and will be removed in a future version.

Inherited from GameMasterLike

Inherited from AnyRef

Inherited from Any

Ungrouped