Base class for all exceptions specific to CodeCraft.
A drone controller is an object that governs the behaviour of a drone.
A drone controller is an object that governs the behaviour of a drone.
It exposes a wide range of methods to query the underlying drone's state and give it commands.
You can inherit from this class to and override the onEvent
methods to implement a
drone controller with custom behaviour.
In Java, use JDroneController instead.
A drone controller is an object that governs the behaviour of a drone.
A drone controller is an object that governs the behaviour of a drone.
It exposes a wide range of methods to query the underlying drone's state and give it commands.
You can inherit from this class and override the onEvent
methods to implement a
drone controller with custom behaviour.
NOTE: You should not actually use this class, but one of it's specialisations. In Scala, use DroneController and in Java use JDroneController.
Specifies the modules equipped by a drone and computes various properties of a Drone with this configuration of modules.
Specifies the modules equipped by a drone and computes various properties of a Drone with this configuration of modules.
Currently, the total number of modules is currently limited to 10 but this restriction will likely be lifted in the future.
Number of storage modules. Allows for storage of mineral crystals and energy globes.
Number of missile batteries. Allows for firing homing missiles.
Number of constructors. Allows for constructing new drones and moving minerals from/to other drones.
Number of engines. Increases move speed.
Number of shield generators. Gives the drone an additional 7 hitpoints each. Shields regenerate over time.
A drone controller is an object that governs the behaviour of a drone.
A drone controller is an object that governs the behaviour of a drone.
It exposes a wide range of methods to query the underlying drone's state and give it commands.
You can inherit from this class and override the onEvent
methods to implement a
drone controller with custom behaviour.
In Scala, use DroneController instead.
In addition to your DroneControllers you can have one MetaController, which has a method that will be called once every tick before the onEvent methods on your drone controllers are called.
In addition to your DroneControllers you can have one MetaController, which has a method that will be called once every tick before the onEvent methods on your drone controllers are called. This can be useful if you want to perform some global computation once every timestep. You can instantiate your MetaController using the DroneControllerBase.metaController method.
A mineral crystal.
A mineral crystal. Can be harvested by drones with storage modules to obtain resources.
Observer
Base trait for all objects representing a player.
The blue player.
The orange player.
The red player.
Main entry point to start the game.