C# Class PlayerActionScheduleHarvest, tf_client

An action to schedule a regular harvest.
Inheritance: PlayerActionHarvestTimber
Afficher le fichier Open project: wids-eria/tf_client

Private Properties

Свойство Type Description
ConcludeHarvest IEnumerator
DisplayCurrentHarvestDetails void
DisplayCurrentHarvestHistoryViewer void
DisplayDiameterLimitDetails void
DisplayHarvestList void
DisplayNewHarvestTab void
DisplayQRatioDetails void
DisplayReviewHarvestsTab void
DrawLineInGraph void
DrawPointInGraph void
ExecuteHarvests IEnumerator

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Awake ( ) : void

Listen for messages.

DisplayControlsContents ( ) : void

Displays the controls contents.

Update ( ) : void

Debug

Private Methods

Méthode 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 méthode

Listen for messages.
protected Awake ( ) : void
Résultat void

DisplayControlsContents() protected méthode

Displays the controls contents.
protected DisplayControlsContents ( ) : void
Résultat void

DisplayHarvestHistoryGraph() public static méthode

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. ///
Résultat string

DoIt() public méthode

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

ExecuteHarvests() public méthode

Executes the harvests.
public ExecuteHarvests ( ) : void
Résultat void

IsPermittedOnResourceTile() public méthode

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

ScheduleHarvest() public méthode

Schedules the harvest.
public ScheduleHarvest ( Harvest, harvest ) : void
harvest Harvest, /// Harvest. ///
Résultat void

Update() protected méthode

Debug
protected Update ( ) : void
Résultat void

_HarvestExecuted() public méthode

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