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

Package | com.lookbackon.AI.FSM.states
Class | public class StateBase
Inheritance | StateBase 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

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

Protected Properties

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

Public Methods

| Method | Defined By
--- | --- | ---
|  | StateBase(agent:IAgent, resource:Object, description:String = null) | StateBase
|  | enter():void | StateBase
|  | exit():void | StateBase
|  | update(time:Number = 0):void | StateBase

Property Detail

agent | property

`protected var agent:IAgent`

description | property |

`description:String`

Implementation
`public function get description():String`
`public function set description(value:String):void`

resource | property |

`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`)``

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