Moving host coordinator into vilya.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@198 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Robert Zubeck
2007-02-19 23:21:28 +00:00
parent e8ada1ac88
commit fa7bf73ddc
2 changed files with 238 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
package com.threerings.ezgame {
import flash.events.Event;
/**
* Dispatched by the host coordinator, to signal a change
* in host status.
*/
public class HostEvent extends EZEvent
{
/** Indicates that the current host changed. */
public static const CHANGED :String = "Host Changed";
/** Indicates that the host used to be unknown, but it became claimed
by one of the clients. */
public static const CLAIMED :String = "Host Claimed";
public function HostEvent (type :String, ezgame :EZGameControl)
{
super (type, ezgame);
}
override public function toString () :String
{
return "[HostEvent type=" + type + "]";
}
override public function clone () :Event
{
return new HostEvent (type, _ezgame);
}
}
}