MagicDroneSubsystem

Constructors

Link copied to clipboard
constructor(ship: <Error class: unknown class>)

Functions

Link copied to clipboard
open fun advanceInternal(amount: Float)
Link copied to clipboard

Uses system stats to calculate the actual drone charges based on {@link MagicSubsystem#scaleSystemStat(float, float)}

Link copied to clipboard
open fun drawHUDBar(viewport: <Error class: unknown class>, rootLoc: <Error class: unknown class>, barLoc: <Error class: unknown class>, displayAdditionalInfo: Boolean, longestNameWidth: Float)
Link copied to clipboard

Drones will deploy when ship is dead only if dronesExplodeWhenShipDies returns false. Otherwise, they would explode in the next frame.

Link copied to clipboard

All drones will explode when the ship dies.

Link copied to clipboard

Drones will still advance while the ship is dead no matter what.

Link copied to clipboard
open fun getBarFill(): Float

Override to not display charge filling in favor of separate drone bar if system doesn't use charges.

Link copied to clipboard

Time to store a single drone charge. This is only used if the hasSeparateDroneCharges method returns true.

Link copied to clipboard

Delay between subsequent drone deployments if multiple need to be deployed at once.

Link copied to clipboard
open fun getDroneDimWrapper(): <Error class: unknown class>
Link copied to clipboard

Formation object that controls drones. The two implemented by this library are HoveringFormation and SpinningCircleFormation. To create your own, you should extend the DroneFormation class.

Link copied to clipboard

Count of drones waiting to be force-spawned.

Link copied to clipboard
abstract fun getDroneVariant(): String
Link copied to clipboard

Flux cost on drone deployment.

Link copied to clipboard

Flux cost on drone deployment as percent of base flux capacity of the ship.

Link copied to clipboard

How many drones can be deployed at once.

Link copied to clipboard
open fun getNumHUDBars(): Int
Link copied to clipboard
open fun getPIDController(): <Error class: unknown class>
Link copied to clipboard

This is useful if you want a charged subsystem to use while allowing drones to have their own set of charges that recharge in parallel.

Link copied to clipboard
open fun init()
Link copied to clipboard

Set flux cost on drone deployment to be hard flux.

Link copied to clipboard
fun setDronesToSpawn(drones: Int)

Set count of drones waiting to be spawned with no flux or charge cost.

Link copied to clipboard

Whether a drone should be spawned on the next deployment interval, if the amount of drones is below the limit and we have charges to spawn the drone. To force spawn a drone, set dronesToSpawn.

Link copied to clipboard
open fun spawnDrone(): <Error class: unknown class>

Properties

Link copied to clipboard
var activeWings: MutableMap<<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
var droneCreationInterval: <Error class: unknown class>
Link copied to clipboard
val droneDeployInterval: <Error class: unknown class>
Link copied to clipboard