Loading...
Searching...
No Matches
CityBuilderTown.TownProgressAction Class Reference

Detailed Description

walker action that progresses a task by calling (like harvesting or building)
calls TownTask.ProgressTask(TownWalker, string) and ends when that returns false
this is done so the progress value can be stored on the task which makes it possible
for multiple walkers to work on the same task and for walkers to stop progressing midway

Inheritance diagram for CityBuilderTown.TownProgressAction:
CityBuilderCore.AnimatedActionBase CityBuilderCore.WalkerAction

Public Member Functions

 TownProgressAction (string key, string parameter)
 
 TownProgressAction (string key, int parameter)
 
override void Start (Walker walker)
 called by the walker when the action is first started, either by being first in a process or when the previous action has ended
 
override void Continue (Walker walker)
 called by the walker after the game has been loaded
 
override void Cancel (Walker walker)
 called by the walker if the action was active when its process was canceled
 
- Public Member Functions inherited from CityBuilderCore.AnimatedActionBase
 AnimatedActionBase (string parameter)
 
 AnimatedActionBase (int parameter)
 
override void End (Walker walker)
 called by the walker when this is the active action and the process advances
do not call this directly, to end an action call Walker.AdvanceProcess
 

Member Function Documentation

◆ Cancel()

override void CityBuilderTown.TownProgressAction.Cancel ( Walker walker)
inlinevirtual

called by the walker if the action was active when its process was canceled

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.AnimatedActionBase.

◆ Continue()

override void CityBuilderTown.TownProgressAction.Continue ( Walker walker)
inlinevirtual

called by the walker after the game has been loaded

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.AnimatedActionBase.

◆ Start()

override void CityBuilderTown.TownProgressAction.Start ( Walker walker)
inlinevirtual

called by the walker when the action is first started, either by being first in a process or when the previous action has ended

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.AnimatedActionBase.