Class

cwinter.codecraft.core

DroneWorldSimulator

Related Doc: package core

Permalink

class DroneWorldSimulator extends Simulator

Aggregates all datastructures required to run a game and implements the game loop.

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

Instance Constructors

  1. new DroneWorldSimulator(map: WorldMap, controllers: Seq[DroneControllerBase], eventGenerator: (Int) ⇒ Seq[SimulatorEvent], replayer: Option[Replayer] = None, multiplayerConfig: MultiplayerConfig = SingleplayerConfig, forceReplayRecorder: Option[ReplayRecorder] = None, settings: Settings = Settings.default)

    Permalink

    map

    Describes the initial state of the game world.

    controllers

    The controllers for the initial drones.

    eventGenerator

    Allows for triggering custom events.

    replayer

    If set to Some(r), the Simulator will replay the events recorded by r.

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 def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asyncUpdate(): Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    DroneWorldSimulator → Simulator
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def framerateTarget: Int

    Permalink
    Definition Classes
    Simulator
  11. def framerateTarget_=(value: Int): Unit

    Permalink
    Definition Classes
    Simulator
  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def initialCameraPos: Vector2

    Permalink
    Definition Classes
    DroneWorldSimulator → Simulator
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPaused: Boolean

    Permalink
    Definition Classes
    Simulator
  17. val map: WorldMap

    Permalink

    Describes the initial state of the game world.

  18. val namedDrones: Map[String, Drone]

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def replayString: Option[String]

    Permalink
  23. def run(steps: Int): Unit

    Permalink
    Definition Classes
    Simulator
  24. def run(): Unit

    Permalink
    Definition Classes
    Simulator
  25. val settings: Settings

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def terminate(): Unit

    Permalink
    Definition Classes
    Simulator
  28. def timestep: Int

    Permalink
    Definition Classes
    Simulator
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def togglePause(): Unit

    Permalink
    Definition Classes
    Simulator
  31. def update(): Unit

    Permalink
    Definition Classes
    DroneWorldSimulator → Simulator
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def winner: Option[Player]

    Permalink

    Returns the winning player.

Inherited from Simulator

Inherited from AnyRef

Inherited from Any

Ungrouped