GODPAPER | All Packages | All Classes | Index | Frames No Frames |
HStateBase

Package | com.lookbackon.AI.HFSM.states
Class | public class HStateBase
Inheritance | HStateBase StateBase Object
Implements | IHState

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

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | description : String | StateBase

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined By
--- | --- | ---
|  | agent : IAgent | StateBase
|  | resource : Object | StateBase

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined 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
|  | enter():void | StateBase
|  | exit():void | StateBase
|  | 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`

Thu Jan 16 2014, 01:11 PM +08:00