Packageverlocity.logic
Classpublic class State
InheritanceState Inheritance Object



Public Properties
 PropertyDefined By
  className : Object
[read-only] Returns the class name of the state.
State
  _disabled : Boolean
Returns if the state is disabled.
State
  NextState : Class
Returns the next state that will be set after this one ends.
State
Public Methods
 MethodDefined By
  
Creates a state and stores its class.
State
  
Construct():void
Called when the state is first created.
State
  
DeInit():void
Called when the state is deinitialized, but not removed.
State
  
Destruct():void
Called when the state is removed.
State
  
Init():void
Called when the state is first initialized.
State
  
ShouldEnd():Boolean
Return true to end the state.
State
  
ToString():String
Returns the string name of the state.
State
  
Update():void
Called each game tick.
State
  
Called each game tick, if verInput is valid.
State
Property Detail
_disabledproperty
_disabled:Boolean

Returns if the state is disabled.


Implementation
    public function get _disabled():Boolean
    public function set _disabled(value:Boolean):void
classNameproperty 
className:Object  [read-only]

Returns the class name of the state.


Implementation
    public function get className():Object
NextStateproperty 
NextState:Class

Returns the next state that will be set after this one ends.


Implementation
    public function get NextState():Class
    public function set NextState(value:Class):void
Constructor Detail
State()Constructor
public function State()

Creates a state and stores its class.

Method Detail
Construct()method
public function Construct():void

Called when the state is first created. (override) Used to create constants/setup the state. DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates!

DeInit()method 
public function DeInit():void

Called when the state is deinitialized, but not removed. (override) Used to delete dynamics. DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates!

Destruct()method 
public function Destruct():void

Called when the state is removed. (override) Used to delete constants. DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates!

Init()method 
public function Init():void

Called when the state is first initialized. (override) Used to create dynamics. DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates!

ShouldEnd()method 
public function ShouldEnd():Boolean

Return true to end the state. (override) DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates!

Returns
Boolean
ToString()method 
public function ToString():String

Returns the string name of the state.

Returns
String
Update()method 
public function Update():void

Called each game tick. (override) DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates

UpdateInput()method 
public function UpdateInput():void

Called each game tick, if verInput is valid. (override) DO NOT CALL MANUALLY - THIS IS HANDLED BY verStates