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

Inheritance: Activity
Exibir arquivo Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method 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

Method 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 method

public FindResources ( Actor self ) : System.Collections.Generic
self Actor
return System.Collections.Generic

FindResources() public method

public FindResources ( Actor self, CPos avoidCell ) : System.Collections.Generic
self Actor
avoidCell CPos
return System.Collections.Generic

GetTargets() public method

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

Tick() public method

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