C# Class RTS.Default.Worker.Action

Inheritance: ACUnitActionController
ファイルを表示 Open project: RegrowthStudios/VoxelRTS

Public Methods

Method Description
ApplyAction ( GameState g, float dt ) : void
DecideAction ( GameState g, float dt ) : void
Deserialize ( System s ) : void
Init ( RTSEngine s, RTSEngine c, object args ) : void
Reset ( ) : void
Serialize ( System s ) : void
SetUnit ( RTSUnit u ) : void

Private Methods

Method Description
ASDeposit ( GameState g, float dt ) : void
ASRest ( GameState g, float dt ) : void
ApplyWorkerAction ( GameState g, float dt ) : void
DSChaseTarget ( GameState g, float dt ) : void
DSHarvest ( GameState g, float dt ) : void
DSMain ( GameState g, float dt ) : void
DecideWorkerAction ( GameState g, float dt ) : void
GetClosestDepository ( ) : RTSBuilding
GetClosestResource ( GameState g ) : RTSBuilding
SetState ( int state ) : void

Method Details

ApplyAction() public method

public ApplyAction ( GameState g, float dt ) : void
g RTSEngine.Data.GameState
dt float
return void

DecideAction() public method

public DecideAction ( GameState g, float dt ) : void
g RTSEngine.Data.GameState
dt float
return void

Deserialize() public method

public Deserialize ( System s ) : void
s System
return void

Init() public method

public Init ( RTSEngine s, RTSEngine c, object args ) : void
s RTSEngine
c RTSEngine
args object
return void

Reset() public method

public Reset ( ) : void
return void

Serialize() public method

public Serialize ( System s ) : void
s System
return void

SetUnit() public method

public SetUnit ( RTSUnit u ) : void
u RTSEngine.Data.Team.RTSUnit
return void