C# Class PlayerActionScheduleHarvest, tf_client

An action to schedule a regular harvest.
Inheritance: PlayerActionHarvestTimber
Mostrar archivo Open project: wids-eria/tf_client

Private Properties

Property Type Description
ConcludeHarvest IEnumerator
DisplayCurrentHarvestDetails void
DisplayCurrentHarvestHistoryViewer void
DisplayDiameterLimitDetails void
DisplayHarvestList void
DisplayNewHarvestTab void
DisplayQRatioDetails void
DisplayReviewHarvestsTab void
DrawLineInGraph void
DrawPointInGraph void
ExecuteHarvests IEnumerator

Public Methods

Method Description
DisplayHarvestHistoryGraph ( Rect parent, Harvest, harvest, HistoryTab currentTab, TimeSeries, poleTimberSeries, TimeSeries, sawTimberSeries, Material lineGraphMaterial ) : string

Displays the history of the supplied harvest as a line graph.

DoIt ( object selection ) : void

Configure modifications then call base implementation.

ExecuteHarvests ( ) : void

Executes the harvests.

IsPermittedOnResourceTile ( ResourceTile, tile ) : bool

Determines whether this action is permitted on the specified tile.

ScheduleHarvest ( Harvest, harvest ) : void

Schedules the harvest.

_HarvestExecuted ( MessageHarvestExecuted, msg ) : void

Raises the harvest executed event.

Concludes the harvest if needed

Protected Methods

Method Description
Awake ( ) : void

Listen for messages.

DisplayControlsContents ( ) : void

Displays the controls contents.

Update ( ) : void

Debug

Private Methods

Method Description
ConcludeHarvest ( Harvest, harvest ) : IEnumerator

Concludes the harvest.

DisplayCurrentHarvestDetails ( ) : void

Displays the current harvest details.

DisplayCurrentHarvestHistoryViewer ( ) : void

Displays the current harvest history viewer.

DisplayDiameterLimitDetails ( ) : void

Displays the diameter limit details.

DisplayHarvestList ( ) : void

Displays the harvest list.

DisplayNewHarvestTab ( ) : void

Displays the new harvest tab.

DisplayQRatioDetails ( ) : void

Displays the Q ratio details.

DisplayReviewHarvestsTab ( ) : void

Displays the review harvests tab.

DrawLineInGraph ( TimeSeries, timeSeries, Vector2 points, Material material, Vector2 upperLeftCorner ) : void

Draws the line in graph.

DrawPointInGraph ( TimeSeries, timeSeries, Vector2 centerPoint, string tooltip ) : void

Draws the point in the line graph.

ExecuteHarvests ( Harvest, harvests ) : IEnumerator

Executes the harvests.

Method Details

Awake() protected method

Listen for messages.
protected Awake ( ) : void
return void

DisplayControlsContents() protected method

Displays the controls contents.
protected DisplayControlsContents ( ) : void
return void

DisplayHarvestHistoryGraph() public static method

Displays the history of the supplied harvest as a line graph.
public static DisplayHarvestHistoryGraph ( Rect parent, Harvest, harvest, HistoryTab currentTab, TimeSeries, poleTimberSeries, TimeSeries, sawTimberSeries, Material lineGraphMaterial ) : string
parent Rect /// The parent rectangle ///
harvest Harvest, /// Harvest. ///
currentTab HistoryTab /// Current tab. ///
poleTimberSeries TimeSeries, /// Pole timber point style. ///
sawTimberSeries TimeSeries, /// Saw timber point style. ///
lineGraphMaterial Material /// Line graph material. ///
return string

DoIt() public method

Configure modifications then call base implementation.
public DoIt ( object selection ) : void
selection object /// The selection to which the action should be applied. ///
return void

ExecuteHarvests() public method

Executes the harvests.
public ExecuteHarvests ( ) : void
return void

IsPermittedOnResourceTile() public method

Determines whether this action is permitted on the specified tile.
public IsPermittedOnResourceTile ( ResourceTile, tile ) : bool
tile ResourceTile, /// The resource tile in question. ///
return bool

ScheduleHarvest() public method

Schedules the harvest.
public ScheduleHarvest ( Harvest, harvest ) : void
harvest Harvest, /// Harvest. ///
return void

Update() protected method

Debug
protected Update ( ) : void
return void

_HarvestExecuted() public method

Raises the harvest executed event.
Concludes the harvest if needed
public _HarvestExecuted ( MessageHarvestExecuted, msg ) : void
msg MessageHarvestExecuted, /// Message. ///
return void