C# Class EnterState, Wallcology-Simulator

Inheritance: ICritterState
显示文件 Open project: ltg-uic/Wallcology-Simulator Class Usage Examples

Public Methods

Method Description
EnterState ( StatePatternCritter, activeCritter ) : UnityEngine
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

Private Methods

Method Description
Enter ( ) : void
SetDurations ( ) : void

Method Details

EnterState() public method

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

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