Packagecom.godpaper.as3.business.fsm.states.chess
Classpublic class AttackState
InheritanceAttackState Inheritance StateBase Inheritance Object

- Attack Nearest Enemy Unit - Attack Weakest Enemy Unit - Attack Strongest Enemy Unit



Public Properties
 PropertyDefined By
 Inheriteddescription : String
StateBase
Protected Properties
 PropertyDefined By
 Inheritedagent : IAgent
StateBase
 Inheritedresource : Object
StateBase
Public Methods
 MethodDefined By
  
AttackState(agent:ChessAgent, resource:Object, description:String = null)
AttackState
  
enter():void
[override]
AttackState
  
exit():void
[override]
AttackState
  
update(time:Number = 0):void
[override]
AttackState
Constructor Detail
AttackState()Constructor
public function AttackState(agent:ChessAgent, resource:Object, description:String = null)



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

exit()method 
override public function exit():void

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

Parameters

time:Number (default = 0)