ShipAIData

open class ShipAIData

Constructors

Link copied to clipboard
constructor(ship: ShipAPI)

Functions

Link copied to clipboard
open fun getAverageWeaponRange(allowMissiles: Boolean): Float
Link copied to clipboard
open fun getDesiredMoveVector(): Vector2f
If ship is accelerating forwards, the vector points more forwards If strafing, the vector points more towards direction of strafe If decelerating or moving backwards, the vector points more backwards These rules combine to make a vector, so you can get a diagonal one by moving forwards while strafing.
Link copied to clipboard
open fun getImmediateTarget(): CombatEntityAPI
Returns the target of the ship.
Link copied to clipboard
If the ship is a fighter and is returning

Properties

Link copied to clipboard