Package | com.whirled.game |
Class | public class StateChangedEvent |
Inheritance | StateChangedEvent ![]() |
Method | Defined by | ||
---|---|---|---|
StateChangedEvent(type:String)
| StateChangedEvent | ||
clone():Event
| StateChangedEvent | ||
toString():String
| StateChangedEvent |
Constant | Defined 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 |
StateChangedEvent | () | constructor |
public function StateChangedEvent(type:String)
Parameters
type:String |
clone | () | method |
public override function clone():Event
Returns
Event |
toString | () | method |
public override function toString():String
Returns
String |
CONTROL_CHANGED | constant |
public static const CONTROL_CHANGED:String = "ControlChanged"
Indicates that a new controller has been assigned.
GAME_ENDED | constant |
public static const GAME_ENDED:String = "GameEnded"
Indicates that the game has transitioned to a ended state.
GAME_STARTED | constant |
public static const GAME_STARTED:String = "GameStarted"
Indicates that the game has transitioned to a started state.
ROUND_ENDED | constant |
public static const ROUND_ENDED:String = "RoundEnded"
Indicates that the current round has ended.
ROUND_STARTED | constant |
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_CHANGED | constant |
public static const TURN_CHANGED:String = "TurnChanged"
Indicates that the turn has changed.