Packagecom.whirled.game
Classpublic class StateChangedEvent
InheritanceStateChangedEvent Inheritance flash.events.Event

Dispatched when the state of the game has changed.



Public Methods
 MethodDefined by
  
StateChangedEvent(type:String)
StateChangedEvent
  
clone():Event
StateChangedEvent
  
toString():String
StateChangedEvent
Public Constants
 ConstantDefined by
  CONTROL_CHANGED : String = "ControlChanged"
[static] Indicates that a new controller has been assigned.
StateChangedEvent
  GAME_ENDED : String = "GameEnded"
[static] Indicates that the game has transitioned to a ended state.
StateChangedEvent
  GAME_STARTED : String = "GameStarted"
[static] Indicates that the game has transitioned to a started state.
StateChangedEvent
  ROUND_ENDED : String = "RoundEnded"
[static] Indicates that the current round has ended.
StateChangedEvent
  ROUND_STARTED : String = "RoundStarted"
[static] Indicates that a round has started.
StateChangedEvent
  TURN_CHANGED : String = "TurnChanged"
[static] Indicates that the turn has changed.
StateChangedEvent
Constructor detail
StateChangedEvent()constructor
public function StateChangedEvent(type:String)Parameters
type:String
Method detail
clone()method
public override function clone():Event

Returns
Event
toString()method 
public override function toString():String

Returns
String
Constant detail
CONTROL_CHANGEDconstant
public static const CONTROL_CHANGED:String = "ControlChanged"

Indicates that a new controller has been assigned.

GAME_ENDEDconstant 
public static const GAME_ENDED:String = "GameEnded"

Indicates that the game has transitioned to a ended state.

GAME_STARTEDconstant 
public static const GAME_STARTED:String = "GameStarted"

Indicates that the game has transitioned to a started state.

ROUND_ENDEDconstant 
public static const ROUND_ENDED:String = "RoundEnded"

Indicates that the current round has ended.

ROUND_STARTEDconstant 
public static const ROUND_STARTED:String = "RoundStarted"

Indicates that a round has started. Games that do not require multiple rounds can ignore this event.

TURN_CHANGEDconstant 
public static const TURN_CHANGED:String = "TurnChanged"

Indicates that the turn has changed.