Package

cwinter.codecraft

core

Permalink

package core

Visibility
  1. Public
  2. All

Type Members

  1. class DroneWorldSimulator extends Simulator

    Permalink

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

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

    Permalink

    Describes the initial position and size of a mineral crystal.

  3. sealed trait MultiplayerConfig extends AnyRef

    Permalink
  4. final class Settings extends AnyRef

    Permalink

    Aggregates various display settings.

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

  6. case class WorldMap(minerals: Seq[MineralSpawn], size: Rectangle, initialDrones: Seq[Spawn], winCondition: Option[WinCondition] = None) 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.

    winCondition

    Win condition, if any.

Value Members

  1. object WorldMap extends Serializable

    Permalink
  2. package api

    Permalink
  3. package multiplayer

    Permalink
  4. package replay

    Permalink

Ungrouped