Package

cwinter.codecraft.core

game

Permalink

package game

Visibility
  1. Public
  2. All

Type Members

  1. case class DroneCount(count: Int) extends WinCondition with Product with Serializable

    Permalink
  2. class DroneWorldSimulator extends Simulator

    Permalink

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

  3. case class LargestFleet(timeout: Int) extends WinCondition with Product with Serializable

    Permalink
  4. case class MineralSpawn(size: Int, position: Vector2) extends Product with Serializable

    Permalink

    Describes the initial position and size of a mineral crystal.

  5. sealed trait MultiplayerConfig extends AnyRef

    Permalink
  6. final case class Settings(allowMessages: Boolean = true, showSightRadius: Boolean = false, showMissileRadius: Boolean = false, allowEnergyGlobeAnimation: Boolean = true, allowMissileAnimation: Boolean = true, allowModuleAnimation: Boolean = true, allowCollisionAnimation: Boolean = true, recordReplays: Boolean = true, allowFramePrecomputation: Boolean = true) extends Product with Serializable

    Permalink

    Aggregates various display settings.

    Aggregates various display settings.

    allowMessages

    Drones are allowed to display warnings or user generated messages.

    showSightRadius

    If true, the sight radius for all drones is shown.

    showMissileRadius

    If true, the missile radius for all drones is shown.

    allowEnergyGlobeAnimation

    Energy globes move between drones and modules, rather then teleporting instantly.

    allowMissileAnimation

    Homing missiles have a trail that shows their path.

    allowModuleAnimation

    Animate modules such as engines.

    recordReplays

    If set to false, replays are not recorded.

  7. case class Spawn(droneSpec: DroneSpec, position: Vector2, player: Player, resources: Int = 0, name: Option[String] = None) extends Product with Serializable

    Permalink

    Describes the initial position and state of a drone.

    Describes the initial position and state of a drone.

    droneSpec

    The specification for the modules and size of the drone.

    position

    The initial position for the drone.

    player

    The owner of the drone.

    resources

    The amount of resources initially stored by the drone.

    name

    Optional name by which the drone can be retrieved in the JavaScript version of the game.

  8. case class SpecialRules(mothershipDamageMultiplier: Double = 1.0, costModifierSize: Array[Double] = Array(1.0, 1.0, 1.0, 1.0), costModifierMissiles: Double = 1.0, costModifierShields: Double = 1.0, costModifierStorage: Double = 1.0, costModifierConstructor: Double = 1.0, costModifierEngines: Double = 1.0) extends Product with Serializable

    Permalink
  9. sealed trait WinCondition extends AnyRef

    Permalink
  10. case class WorldMap(minerals: Seq[MineralSpawn], size: Rectangle, initialDrones: Seq[Spawn]) extends Product with Serializable

    Permalink

    Defines the initial world state for a game.

    Defines the initial world state for a game.

    minerals

    The initial set of mineral crystals.

    size

    The world boundary.

    initialDrones

    The initial set of drones.

Ungrouped