Packagecom.lookbackon.AI.FSM.states
Classpublic class StateBase
InheritanceStateBase Inheritance Object
Implements IState
Subclasses AnotherHumanState, AnotherHumanWinState, AttackState, ComputerState, ComputerWinState, DefenseState, HStateBase, HumanState, HumanWinState, NascenceState, RenascenceState

The base class of FSM state.This state internal hold on another human state,such as board,chess pice,game info,etc..



Public Properties
 PropertyDefined By
  description : String
StateBase
Protected Properties
 PropertyDefined By
  agent : IAgent
StateBase
  resource : Object
StateBase
Public Methods
 MethodDefined By
  
StateBase(agent:IAgent, resource:Object, description:String = null)
StateBase
  
enter():void
StateBase
  
exit():void
StateBase
  
update(time:Number = 0):void
StateBase
Property Detail
agentproperty
protected var agent:IAgent

descriptionproperty 
description:String


Implementation
    public function get description():String
    public function set description(value:String):void
resourceproperty 
protected var resource:Object

Constructor Detail
StateBase()Constructor
public function StateBase(agent:IAgent, resource:Object, description:String = null)



Parameters
agent:IAgent
 
resource:Object
 
description:String (default = null)
Method Detail
enter()method
public function enter():void

exit()method 
public function exit():void

update()method 
public function update(time:Number = 0):void

Parameters

time:Number (default = 0)