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

Inheritance: Activity
Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Méthode Description
FindResources ( Actor self ) : System.Collections.Generic
FindResources ( Actor self, CPos avoidCell ) : System.Collections.Generic
GetTargets ( Actor self ) : IEnumerable
Tick ( Actor self ) : Activity

Private Methods

Méthode Description
ClosestHarvestablePos ( Actor self ) : CPos?

Finds the closest harvestable pos between the current position of the harvester and the last order location

Method Details

FindResources() public méthode

public FindResources ( Actor self ) : System.Collections.Generic
self Actor
Résultat System.Collections.Generic

FindResources() public méthode

public FindResources ( Actor self, CPos avoidCell ) : System.Collections.Generic
self Actor
avoidCell CPos
Résultat System.Collections.Generic

GetTargets() public méthode

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

Tick() public méthode

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