Packagecom.lookbackon.AI.HFSM.states
Classpublic class HStateBase
InheritanceHStateBase Inheritance StateBase Inheritance Object
Implements IHState

HStateBase.as class. The base class of HFSM state.



Public Properties
 PropertyDefined By
 Inheriteddescription : String
StateBase
Protected Properties
 PropertyDefined By
 Inheritedagent : IAgent
StateBase
 Inheritedresource : Object
StateBase
Public Methods
 MethodDefined By
  
HStateBase(agent:IAgent, resource:Object, description:String = null)
HStateBase
  
derivesFrom(state:IState):Boolean
Note that derivesFrom() is a template function in a class template and to use it, each sub-state should override this function.
HStateBase
 Inherited
enter():void
StateBase
 Inherited
exit():void
StateBase
 Inherited
update(time:Number = 0):void
StateBase
Constructor Detail
HStateBase()Constructor
public function HStateBase(agent:IAgent, resource:Object, description:String = null)



Parameters
agent:IAgent
 
resource:Object
 
description:String (default = null)
Method Detail
derivesFrom()method
public function derivesFrom(state:IState):Boolean

Note that derivesFrom() is a template function in a class template and to use it, each sub-state should override this function.

Parameters

state:IState

Returns
Boolean