C# Class OpenRA.Mods.Common.Activities.MoveAdjacentTo

Inheritance: Activity
Show file Open project: pchote/OpenRA

Protected Properties

Property Type Description
targetPosition CPos

Public Methods

Method Description
Cancel ( Actor self ) : bool
GetTargets ( Actor self ) : IEnumerable
MoveAdjacentTo ( Actor self, Target target ) : System.Collections.Generic
Tick ( Actor self ) : Activity

Protected Methods

Method Description
CandidateMovementCells ( Actor self ) : IEnumerable
ShouldRepath ( Actor self, CPos oldTargetPosition ) : bool
ShouldStop ( Actor self, CPos oldTargetPosition ) : bool

Private Methods

Method Description
CalculatePathToTarget ( Actor self ) : List

Method Details

Cancel() public method

public Cancel ( Actor self ) : bool
self Actor
return bool

CandidateMovementCells() protected method

protected CandidateMovementCells ( Actor self ) : IEnumerable
self Actor
return IEnumerable

GetTargets() public method

public GetTargets ( Actor self ) : IEnumerable
self Actor
return IEnumerable

MoveAdjacentTo() public method

public MoveAdjacentTo ( Actor self, Target target ) : System.Collections.Generic
self Actor
target OpenRA.Traits.Target
return System.Collections.Generic

ShouldRepath() protected method

protected ShouldRepath ( Actor self, CPos oldTargetPosition ) : bool
self Actor
oldTargetPosition CPos
return bool

ShouldStop() protected method

protected ShouldStop ( Actor self, CPos oldTargetPosition ) : bool
self Actor
oldTargetPosition CPos
return bool

Tick() public method

public Tick ( Actor self ) : Activity
self Actor
return Activity

Property Details

targetPosition protected property

protected CPos targetPosition
return CPos