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. def bonusLevelMap: WorldMap

    Permalink

    The cwinter.codecraft.core.game.WorldMap for the bonus level.

    The cwinter.codecraft.core.game.WorldMap for the bonus level.

    Definition Classes
    GameMasterLike
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. 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
  14. def createSimulator(mothership1: DroneControllerBase, mothership2: DroneControllerBase, map: WorldMap): DroneWorldSimulator

    Permalink

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

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

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

    Permalink

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

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

    Definition Classes
    GameMasterLike
  16. def defaultMap: WorldMap

    Permalink

    The default cwinter.codecraft.core.game.WorldMap.

    Definition Classes
    GameMasterLike
  17. def destroyerAI(): DroneControllerBase

    Permalink

    Returns a drone controller for the Destroyer AI.

    Returns a drone controller for the Destroyer AI.

    Definition Classes
    GameMasterLike
  18. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  24. def largeMap: WorldMap

    Permalink

    A large cwinter.codecraft.core.game.WorldMap.

    Definition Classes
    GameMasterLike
  25. 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
  26. def level1Map: WorldMap

    Permalink

    The cwinter.codecraft.core.game.WorldMap for the first level.

    The cwinter.codecraft.core.game.WorldMap for the first level.

    Definition Classes
    GameMasterLike
  27. 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
  28. def level2Map: WorldMap

    Permalink

    The cwinter.codecraft.core.game.WorldMap for the second level.

    The cwinter.codecraft.core.game.WorldMap for the second level.

    Definition Classes
    GameMasterLike
  29. 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
  30. 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
  31. 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
  32. 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
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def prepareMultiplayerGame(serverAddress: String): Future[(DroneControllerBase) ⇒ DroneWorldSimulator]

    Permalink

    Sets up a multiplayer game with the specified server.

    Sets up a multiplayer game with the specified server.

    Definition Classes
    GameMasterLike
  37. 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
  38. 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
  39. def run(simulator: DroneWorldSimulator): DroneWorldSimulator

    Permalink

    Runs the simulator.

    Runs the simulator.

    Definition Classes
    TheGameMaster → GameMasterLike
  40. 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
  41. 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
  42. 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
  43. def runLastReplay(): DroneWorldSimulator

    Permalink

    Runs the last recorded replay.

  44. def runLevel1(mothership1: DroneControllerBase): DroneWorldSimulator

    Permalink

    Runs the first level.

    Runs the first level.

    mothership1

    The controller for your mothership.

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

    Permalink

    Runs the second level.

    Runs the second level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the third level.

    Runs the third level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the fourth level.

    Runs the fourth level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the fifth level.

    Runs the fifth level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the sixth level.

    Runs the sixth level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the seventh level.

    Runs the seventh level.

    mothership

    The controller for your mothership.

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

    Permalink

    Runs the replay stored in the specified file.

  52. def smallMap: WorldMap

    Permalink

    A small cwinter.codecraft.core.game.WorldMap.

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. 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