C# Class WanderState, Wallcology-Simulator

Inheritance: State
ファイルを表示 Open project: ltg-uic/Wallcology-Simulator Class Usage Examples

Public Methods

Method Description
HandleHerbivore ( StatePatternCritter, herbivore ) : void
HandlePredator ( string source, StatePatternCritter, predator ) : void
HandleResource ( Collider plantColl ) : void
Look ( ) : void
OnTriggerEnter ( Collider other ) : void
OnTriggerStay ( Collider other ) : void
ToEnterState ( ) : void
ToExitState ( ) : void
ToFlightState ( StatePatternCritter, predator ) : void
ToForageState ( ) : void
ToIdleState ( ) : void
ToPursuitState ( StatePatternCritter, prey ) : void
ToWanderState ( ) : void
UpdateState ( ) : void
WanderState ( StatePatternCritter, activeCritter ) : UnityEngine

Private Methods

Method Description
ReturnToOrigin ( ) : void
SetDurations ( ) : void
Wander ( ) : void

Method Details

HandleHerbivore() public method

public HandleHerbivore ( StatePatternCritter, herbivore ) : void
herbivore StatePatternCritter,
return void

HandlePredator() public method

public HandlePredator ( string source, StatePatternCritter, predator ) : void
source string
predator StatePatternCritter,
return void

HandleResource() public method

public HandleResource ( Collider plantColl ) : void
plantColl Collider
return void

Look() public method

public Look ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other Collider
return void

OnTriggerStay() public method

public OnTriggerStay ( Collider other ) : void
other Collider
return void

ToEnterState() public method

public ToEnterState ( ) : void
return void

ToExitState() public method

public ToExitState ( ) : void
return void

ToFlightState() public method

public ToFlightState ( StatePatternCritter, predator ) : void
predator StatePatternCritter,
return void

ToForageState() public method

public ToForageState ( ) : void
return void

ToIdleState() public method

public ToIdleState ( ) : void
return void

ToPursuitState() public method

public ToPursuitState ( StatePatternCritter, prey ) : void
prey StatePatternCritter,
return void

ToWanderState() public method

public ToWanderState ( ) : void
return void

UpdateState() public method

public UpdateState ( ) : void
return void

WanderState() public method

public WanderState ( StatePatternCritter, activeCritter ) : UnityEngine
activeCritter StatePatternCritter,
return UnityEngine