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

Inheritance: MoveAdjacentTo
Exibir arquivo Open project: pchote/OpenRA

Public Methods

Method Description
MoveWithinRange ( Actor self, Target target, WDist minRange, WDist maxRange ) : System.Collections.Generic

Protected Methods

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

Private Methods

Method Description
AtCorrectRange ( WPos origin ) : bool

Method Details

CandidateMovementCells() protected method

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

MoveWithinRange() public method

public MoveWithinRange ( Actor self, Target target, WDist minRange, WDist maxRange ) : System.Collections.Generic
self Actor
target OpenRA.Traits.Target
minRange WDist
maxRange WDist
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