Logo FSBarV1_Archived

PositionChooser Type

Strategy for picking a slot's world position during plan resolution.

Union cases

Union case Description

AtChokepointHead chokepointIndex

Full Usage: AtChokepointHead chokepointIndex

Parameters:
    chokepointIndex : int

Place at the inward-facing head of a specific chokepoint.

chokepointIndex : int

AtLiteralPosition(x, y, z)

Full Usage: AtLiteralPosition(x, y, z)

Parameters:
    x : float32
    y : float32
    z : float32

Place at a literal absolute world position (primarily for tests / diagnostics).

x : float32
y : float32
z : float32

NearBaseCentre(dx, dz)

Full Usage: NearBaseCentre(dx, dz)

Parameters:
    dx : float32
    dz : float32

Pick an offset (dx, dz) from a pinned base centre.

dx : float32
dz : float32

NearCommander(dx, dz)

Full Usage: NearCommander(dx, dz)

Parameters:
    dx : float32
    dz : float32

Pick an offset (dx, dz) from the current commander position.

dx : float32
dz : float32

NearestMetalSpot spotIndex

Full Usage: NearestMetalSpot spotIndex

Parameters:
    spotIndex : int

Pick the nth nearest free metal spot to the base centre.

spotIndex : int

Instance members

Instance member Description

this.IsAtChokepointHead

Full Usage: this.IsAtChokepointHead

Returns: bool
Returns: bool

this.IsAtLiteralPosition

Full Usage: this.IsAtLiteralPosition

Returns: bool
Returns: bool

this.IsNearBaseCentre

Full Usage: this.IsNearBaseCentre

Returns: bool
Returns: bool

this.IsNearCommander

Full Usage: this.IsNearCommander

Returns: bool
Returns: bool

this.IsNearestMetalSpot

Full Usage: this.IsNearestMetalSpot

Returns: bool
Returns: bool

Type something to start searching.