Files
vilya/src/as/com/threerings/ezgame/StateChangedEvent.as
T
Ray Greenwell 70b0d759c0 Moved the serverless game stuff out of msoy and back into the vilya library.
We'll be using this in game gardens, at least.
Note that the actionscript side currently doesn't compile because of
limitations in building a .swc file, but that'll be fixed soon.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@47 c613c5cb-e716-0410-b11b-feb51c14d237
2006-08-23 02:28:36 +00:00

36 lines
887 B
ActionScript

package com.threerings.ezgame {
import flash.events.Event;
/**
* Dispatched when the state of the game has changed.
*/
public class StateChangedEvent extends Event
{
/** Indicates that the game has transitioned to a started state. */
public static const GAME_STARTED :String = "GameStarted";
/** Indicates that the game has transitioned to a ended state. */
public static const GAME_ENDED :String = "GameEnded";
/** Indicates that the turn has changed. */
// TODO: move to own event?
public static const TURN_CHANGED :String = "TurnChanged";
public function StateChangedEvent (type :String)
{
super(type);
}
override public function toString () :String
{
return "[StateChangedEvent type=" + type + "]";
}
override public function clone () :Event
{
return new StateChangedEvent(type);
}
}
}