Class PathFollowComponent

Namespace
TDMaker.Core.Components
Assembly
TDMaker.Core.dll

Path and engagement state for an enemy.

public sealed class PathFollowComponent
Inheritance
PathFollowComponent
Inherited Members

Constructors

PathFollowComponent()

public PathFollowComponent()

Properties

BlockerCount

Number of assigned soldiers in current contact-rank order.

public int BlockerCount { get; }

Property Value

int

BlockerId

First contact-rank soldier identifier, or zero. It need not be the retained melee representative.

public int BlockerId { get; }

Property Value

int

IsConnecting

Whether the unit is crossing to the current path's entry from a previous path.

public bool IsConnecting { get; }

Property Value

bool

IsWaitingForContact

Whether the observed representative has not reached its contact goal.

public bool IsWaitingForContact { get; }

Property Value

bool

LaneIndex

Sub-lane index.

public int LaneIndex { get; }

Property Value

int

NodeIndex

Index of the current segment's starting node.

public int NodeIndex { get; }

Property Value

int

PathIndex

Level path index.

public int PathIndex { get; }

Property Value

int

ReachedExit

Whether the unit has crossed the exit.

public bool ReachedExit { get; }

Property Value

bool

RemainingDistance

Distance remaining to the exit, used for target priority.

public float RemainingDistance { get; }

Property Value

float

RepresentativeId

Retained melee representative. May differ from BlockerId after rank rotation; zero before observation/after loss.

public int RepresentativeId { get; }

Property Value

int

SegmentProgress

Normalized progress along the current segment.

public float SegmentProgress { get; }

Property Value

float

TravelAngle

Last general travel angle in radians, retained while stopped.

public float TravelAngle { get; }

Property Value

float

Methods

GetBlockerId(int)

Reads an assigned soldier identifier by engagement rank.

public int GetBlockerId(int index)

Parameters

index int

Returns

int