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

Inheritance: Activity
Afficher le fichier Open project: pchote/OpenRA

Protected Properties

Свойство Type Description
targetPosition CPos

Méthodes publiques

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

Méthodes protégées

Méthode Description
CandidateMovementCells ( Actor self ) : IEnumerable
ShouldRepath ( Actor self, CPos oldTargetPosition ) : bool
ShouldStop ( Actor self, CPos oldTargetPosition ) : bool

Private Methods

Méthode Description
CalculatePathToTarget ( Actor self ) : List

Method Details

Cancel() public méthode

public Cancel ( Actor self ) : bool
self Actor
Résultat bool

CandidateMovementCells() protected méthode

protected CandidateMovementCells ( Actor self ) : IEnumerable
self Actor
Résultat IEnumerable

GetTargets() public méthode

public GetTargets ( Actor self ) : IEnumerable
self Actor
Résultat IEnumerable

MoveAdjacentTo() public méthode

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

ShouldRepath() protected méthode

protected ShouldRepath ( Actor self, CPos oldTargetPosition ) : bool
self Actor
oldTargetPosition CPos
Résultat bool

ShouldStop() protected méthode

protected ShouldStop ( Actor self, CPos oldTargetPosition ) : bool
self Actor
oldTargetPosition CPos
Résultat bool

Tick() public méthode

public Tick ( Actor self ) : Activity
self Actor
Résultat Activity

Property Details

targetPosition protected_oe property

protected CPos targetPosition
Résultat CPos