Loading...
Searching...
No Matches
CityBuilderCore.AnimatedActionBase Class Referenceabstract

Detailed Description

base class for walker actions that play an animation while they are active
sets a bool parameter in the Walker.Animator to true when started and resets it when is ends

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

Public Member Functions

 AnimatedActionBase (string parameter)
 
 AnimatedActionBase (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
 
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 CityBuilderCore.AnimatedActionBase.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.WalkerAction.

Reimplemented in CityBuilderTown.TownProgressAction, and CityBuilderTown.TownWorkAction.

◆ Continue()

override void CityBuilderCore.AnimatedActionBase.Continue ( Walker walker)
inlinevirtual

called by the walker after the game has been loaded

Parameters
walkerthe walker performing this action

Reimplemented from CityBuilderCore.WalkerAction.

Reimplemented in CityBuilderTown.TownProgressAction.

◆ End()

override void CityBuilderCore.AnimatedActionBase.End ( Walker walker)
inlinevirtual

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

Parameters
walker

Reimplemented from CityBuilderCore.WalkerAction.

◆ Start()

override void CityBuilderCore.AnimatedActionBase.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.WalkerAction.

Reimplemented in CityBuilderTown.TownProgressAction, and CityBuilderTown.TownWorkAction.