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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user