Import ordering

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6695 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2011-08-17 20:04:57 +00:00
parent 8d31e1e15a
commit c32b1baa41
71 changed files with 121 additions and 176 deletions
@@ -22,7 +22,6 @@
package com.threerings.bureau.client {
import com.threerings.presents.client.Client;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.bureau.data.BureauAuthName;
import com.threerings.bureau.data.BureauCredentials;
@@ -77,10 +76,11 @@ public class BureauClient extends Client
}
import com.threerings.presents.client.Client;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.bureau.client.BureauClient;
import com.threerings.bureau.client.BureauDirector;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.client.Client;
import com.threerings.bureau.util.BureauContext;
class Context
@@ -21,9 +21,9 @@
package com.threerings.bureau.client {
import com.threerings.util.Log;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Log;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
@@ -22,6 +22,7 @@
package com.threerings.bureau.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.presents.dobj.DObject;
public class AgentObject extends DObject
@@ -22,6 +22,7 @@
package com.threerings.bureau.util {
import com.threerings.presents.util.PresentsContext;
import com.threerings.bureau.client.BureauDirector;
/**
@@ -22,12 +22,11 @@
package com.threerings.crowd.chat.client {
import com.threerings.util.MessageBundle;
import com.threerings.util.Name;
import com.threerings.util.StringUtil;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
public class BroadcastHandler extends CommandHandler
{
@@ -22,11 +22,16 @@
package com.threerings.crowd.chat.client {
import com.threerings.util.Arrays;
import com.threerings.util.Log;
import com.threerings.util.Long;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.MessageBundle;
import com.threerings.util.MessageManager;
import com.threerings.util.Name;
import com.threerings.util.ObserverList;
import com.threerings.util.ResultListener;
import com.threerings.util.StringUtil;
import com.threerings.util.TimeUtil;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
@@ -36,18 +41,6 @@ import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.MessageEvent;
import com.threerings.presents.dobj.MessageListener;
import com.threerings.util.Long;
import com.threerings.util.MessageBundle;
import com.threerings.util.MessageManager;
import com.threerings.util.Name;
import com.threerings.util.TimeUtil;
import com.threerings.crowd.client.CrowdClient;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.CrowdCodes;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatChannel;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.chat.data.ChatMarshaller;
@@ -56,6 +49,11 @@ import com.threerings.crowd.chat.data.SystemMessage;
import com.threerings.crowd.chat.data.TellFeedbackMessage;
import com.threerings.crowd.chat.data.UserMessage;
import com.threerings.crowd.chat.data.UserSystemMessage;
import com.threerings.crowd.client.CrowdClient;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.CrowdCodes;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
/**
* The chat director is the client side coordinator of all chat related services. It handles both
@@ -21,9 +21,8 @@
package com.threerings.crowd.chat.client {
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.util.CrowdContext;
public class ClearHandler extends CommandHandler
{
@@ -23,9 +23,8 @@ package com.threerings.crowd.chat.client {
import com.threerings.util.StringUtil;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.util.CrowdContext;
public class EmoteHandler extends CommandHandler
{
@@ -25,9 +25,8 @@ import com.threerings.util.Map;
import com.threerings.util.MessageBundle;
import com.threerings.util.StringUtil;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.util.CrowdContext;
public class HelpHandler extends CommandHandler
{
@@ -25,8 +25,6 @@ import com.threerings.util.StringUtil;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
public class SpeakHandler extends CommandHandler
{
override public function handleCommand (
@@ -26,10 +26,10 @@ import com.threerings.util.ResultAdapter;
import com.threerings.util.ResultListener;
import com.threerings.util.StringUtil;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.client.CrowdClient;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
public class TellHandler extends CommandHandler
{
@@ -23,9 +23,8 @@ package com.threerings.crowd.chat.client {
import com.threerings.util.StringUtil;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.crowd.util.CrowdContext;
public class ThinkHandler extends CommandHandler
{
@@ -22,6 +22,7 @@
package com.threerings.crowd.chat.data {
import com.threerings.io.SimpleStreamableObject;
import com.threerings.util.Comparable;
import com.threerings.util.Equalable;
import com.threerings.util.Hashable;
@@ -24,8 +24,6 @@ package com.threerings.crowd.chat.data {
import com.threerings.presents.data.InvocationCodes;
import com.threerings.presents.data.Permission;
import com.threerings.crowd.data.BodyObject;
/**
* Contains codes used by the chat invocation services.
*/
@@ -21,14 +21,14 @@
package com.threerings.crowd.chat.data {
import flash.utils.getTimer; // function import
import com.threerings.util.ClassUtil;
import flash.utils.getTimer;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.ClassUtil;
/**
* The abstract base class of all the client-side ChatMessage objects.
*/
@@ -23,6 +23,7 @@ package com.threerings.crowd.chat.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Name;
/**
@@ -21,11 +21,11 @@
package com.threerings.crowd.chat.data {
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Name;
/**
* A ChatMessage representing a message that came from another user.
*/
@@ -21,11 +21,11 @@
package com.threerings.crowd.chat.data {
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Name;
/**
* A system message triggered by the activity of another user.
* If the user is muted we can suppress this message, unlike a normal
@@ -21,16 +21,15 @@
package com.threerings.crowd.client {
import flash.utils.getTimer; // function import
import flash.utils.getTimer;
import com.threerings.util.ObserverList;
import com.threerings.util.Log;
import com.threerings.util.ObserverList;
import com.threerings.util.ResultListener;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.ClientEvent;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.ObjectAccessError;
import com.threerings.presents.dobj.Subscriber;
@@ -21,8 +21,8 @@
package com.threerings.crowd.client {
import com.threerings.util.ObserverList;
import com.threerings.util.Name;
import com.threerings.util.ObserverList;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
@@ -24,7 +24,7 @@ package com.threerings.crowd.client {
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import mx.core.IRawChildrenContainer; // a simple interface from flex
import mx.core.IRawChildrenContainer;
import com.threerings.util.Log;
@@ -21,18 +21,15 @@
package com.threerings.crowd.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Byte;
import com.threerings.util.Name;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationCodes;
import com.threerings.presents.data.PermissionPolicy;
import com.threerings.crowd.chat.data.ChatCodes;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
/**
* The basic user object class for Crowd users. Bodies have a location and a status.
*/
@@ -21,17 +21,15 @@
package com.threerings.crowd.data {
import flash.system.ApplicationDomain;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
import com.threerings.util.ClassUtil;
import com.threerings.util.Cloneable;
import com.threerings.util.Integer;
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
import com.threerings.presents.dobj.DSet_Entry;
import com.threerings.crowd.data.BodyObject;
@@ -24,6 +24,7 @@ package com.threerings.crowd.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
import com.threerings.util.Hashable;
/**
@@ -21,8 +21,6 @@
package com.threerings.crowd.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
import com.threerings.crowd.client.PlaceController;
@@ -21,18 +21,17 @@
package com.threerings.crowd.data {
import com.threerings.util.Iterator;
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Iterator;
import com.threerings.util.Name;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.OidList;
import com.threerings.crowd.chat.data.SpeakMarshaller;
//import com.threerings.crowd.chat.data.SpeakObject;
/**
* A distributed object that contains information on a place that is
@@ -21,11 +21,11 @@
package com.threerings.crowd.peer.data {
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Name;
import com.threerings.presents.peer.data.ClientInfo;
/**
@@ -22,12 +22,12 @@
package com.threerings.crowd.util {
import com.threerings.presents.util.PresentsContext;
import com.threerings.crowd.chat.client.ChatDirector;
import com.threerings.crowd.client.LocationDirector;
import com.threerings.crowd.client.OccupantDirector;
import com.threerings.crowd.client.PlaceView;
import com.threerings.crowd.chat.client.ChatDirector;
/**
* The crowd context provides access to the various managers, etc. that
* are needed by the crowd client code.
@@ -22,7 +22,6 @@
package com.threerings.io {
import flash.events.Event;
import flash.utils.ByteArray;
public class FrameAvailableEvent extends Event
@@ -23,9 +23,7 @@ package com.threerings.io {
import flash.events.EventDispatcher;
import flash.events.ProgressEvent;
import flash.net.Socket;
import flash.utils.ByteArray;
import flash.utils.Endian;
@@ -23,7 +23,6 @@ package com.threerings.io {
import flash.errors.IOError;
import flash.errors.MemoryError;
import flash.utils.ByteArray;
import flash.utils.IDataInput;
@@ -25,10 +25,10 @@ import flash.utils.ByteArray;
import flash.utils.IDataOutput;
import com.threerings.util.ClassUtil;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Log;
import com.threerings.util.Long;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Short;
public class ObjectOutputStream
+6 -6
View File
@@ -24,20 +24,20 @@ package com.threerings.io {
import flash.utils.ByteArray;
import flash.utils.Dictionary;
import com.threerings.util.ByteEnum;
import com.threerings.util.ClassUtil;
import com.threerings.util.Enum;
import com.threerings.util.Log;
import com.threerings.io.streamers.ArrayStreamer;
import com.threerings.io.streamers.ByteArrayStreamer;
import com.threerings.io.streamers.ByteEnumStreamer;
import com.threerings.io.streamers.DelegatingStreamer;
import com.threerings.io.streamers.EnumStreamer;
import com.threerings.io.streamers.MapStreamer;
import com.threerings.io.streamers.NumberStreamer;
import com.threerings.io.streamers.SetStreamer;
import com.threerings.io.streamers.StringStreamer;
import com.threerings.io.streamers.DelegatingStreamer;
import com.threerings.util.ByteEnum;
import com.threerings.util.ClassUtil;
import com.threerings.util.Enum;
import com.threerings.util.Log;
public class Streamer
{
@@ -27,9 +27,10 @@ import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.io.Translations;
import com.threerings.io.TypedArray;
import com.threerings.util.Byte;
import com.threerings.util.ClassUtil;
import com.threerings.util.Enum;
import com.threerings.util.Byte;
import com.threerings.util.Float;
import com.threerings.util.Integer;
import com.threerings.util.Log;
@@ -21,12 +21,12 @@
package com.threerings.io.streamers {
import com.threerings.util.ByteEnum;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.util.ByteEnum;
public class ByteEnumStreamer extends Streamer
{
public function ByteEnumStreamer (enumClass :Class, jname :String = null)
@@ -20,10 +20,10 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.io.streamers {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
/**
* A streamer that allows subclasses or implementations of the classes or interfaces supported by
* other streamers to be included in upstream messages. All serialization support is impelemented
@@ -21,12 +21,12 @@
package com.threerings.io.streamers {
import com.threerings.util.Enum;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.util.Enum;
public class EnumStreamer extends Streamer
{
public function EnumStreamer (enumClass :Class, jname :String = null)
@@ -26,7 +26,6 @@ import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.util.ClassUtil;
import com.threerings.util.Map;
import com.threerings.util.Maps;
@@ -26,7 +26,6 @@ import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamer;
import com.threerings.util.ClassUtil;
import com.threerings.util.Set;
import com.threerings.util.Sets;
@@ -22,7 +22,6 @@
package com.threerings.presents.client {
import flash.events.EventDispatcher;
import flash.events.TimerEvent;
import flash.utils.Timer;
import com.threerings.util.DelayUtil;
@@ -33,9 +32,7 @@ import com.threerings.presents.client.InvocationService_ConfirmListener;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationCodes;
import com.threerings.presents.data.TimeBaseMarshaller;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.AuthResponseData;
import com.threerings.presents.net.BootstrapData;
import com.threerings.presents.net.Credentials;
@@ -20,17 +20,14 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.presents.client {
import com.threerings.presents.net.CompoundDownstreamMessage;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flash.utils.getTimer; // function import
import flash.utils.getTimer;
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Log;
import com.threerings.presents.dobj.CompoundEvent;
import com.threerings.presents.dobj.DEvent;
@@ -39,10 +36,10 @@ import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.dobj.ObjectAccessError;
import com.threerings.presents.dobj.ObjectDestroyedEvent;
import com.threerings.presents.dobj.Subscriber;
import com.threerings.presents.net.BootstrapNotification;
import com.threerings.presents.net.EventNotification;
import com.threerings.presents.net.CompoundDownstreamMessage;
import com.threerings.presents.net.DownstreamMessage;
import com.threerings.presents.net.EventNotification;
import com.threerings.presents.net.FailureResponse;
import com.threerings.presents.net.ForwardEventRequest;
import com.threerings.presents.net.ObjectResponse;
@@ -20,33 +20,31 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.presents.client {
import com.threerings.presents.net.CompoundUpstreamMessage;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.events.TimerEvent;
import flash.net.Socket;
import flash.utils.ByteArray;
import flash.utils.Endian;
import flash.utils.Timer;
import com.threerings.util.Log;
import com.threerings.io.FrameAvailableEvent;
import com.threerings.io.FrameReader;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Log;
import com.threerings.presents.data.AuthCodes;
import com.threerings.presents.net.AuthRequest;
import com.threerings.presents.net.AuthResponse;
import com.threerings.presents.net.AuthResponseData;
import com.threerings.presents.net.CompoundUpstreamMessage;
import com.threerings.presents.net.DownstreamMessage;
import com.threerings.presents.net.LogoffRequest;
import com.threerings.presents.net.UpstreamMessage;
import com.threerings.presents.net.ThrottleUpdatedMessage;
import com.threerings.presents.net.UpstreamMessage;
public class Communicator
{
@@ -22,16 +22,16 @@
package com.threerings.presents.client {
import flash.errors.IllegalOperationError;
import flash.utils.getTimer; // function import
import flash.utils.getTimer;
import com.threerings.util.Boxed;
import com.threerings.util.Log;
import com.threerings.util.Map;
import com.threerings.util.Maps;
import com.threerings.util.Log;
import com.threerings.util.Short;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.presents.dobj.CompoundEvent;
import com.threerings.presents.dobj.DEvent;
import com.threerings.presents.dobj.DObject;
@@ -46,8 +46,6 @@ import com.threerings.presents.dobj.ObjectAccessError;
import com.threerings.presents.dobj.Subscriber;
import com.threerings.presents.dobj.SubscriberAdapter;
import com.threerings.presents.data.ClientObject;
public class InvocationDirector
implements EventListener
{
@@ -21,15 +21,15 @@
package com.threerings.presents.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Name;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSet_Entry;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
/**
* Every client in the system has an associated client object to which
* only they subscribe. The client object can be used to deliver messages
@@ -21,18 +21,16 @@
package com.threerings.presents.data {
import com.threerings.util.ClassUtil;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.ClassUtil;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationDirector;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.dobj.DObjectManager;
/**
* Provides a base from which all invocation service marshallers extend.
* Handles functionality common to all marshallers.
@@ -21,13 +21,13 @@
package com.threerings.presents.data {
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.presents.client.InvocationService_InvocationListener;
public class InvocationMarshaller_ListenerMarshaller
@@ -20,20 +20,19 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.presents.dobj {
import org.osflash.signals.Signal;
import flash.errors.IllegalOperationError;
import flash.events.EventDispatcher;
import com.threerings.util.ClassUtil;
import com.threerings.util.Joiner;
import com.threerings.util.Log;
import org.osflash.signals.Signal;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.ClassUtil;
import com.threerings.util.Joiner;
import com.threerings.util.Log;
public class DObject // extends EventDispatcher
implements Streamable
{
@@ -427,13 +426,12 @@ public class DObject // extends EventDispatcher
}
}
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.MessageEvent;
import com.threerings.presents.dobj.MessageListener;
import com.threerings.presents.dobj.ObjectDeathListener;
import com.threerings.presents.dobj.ObjectDestroyedEvent;
import com.threerings.presents.dobj.DObject;
class Signaller
implements MessageListener, ObjectDeathListener
{
@@ -21,6 +21,11 @@
package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.io.TypedArray;
import com.threerings.util.ArrayIterator;
import com.threerings.util.Cloneable;
import com.threerings.util.Equalable;
@@ -28,11 +33,6 @@ import com.threerings.util.Iterator;
import com.threerings.util.Log;
import com.threerings.util.Util;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.io.TypedArray;
/**
* The distributed set class provides a means by which an unordered set of
* objects can be maintained as a distributed object field. Entries can be
@@ -23,7 +23,6 @@ package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.TypedArray;
import com.threerings.util.Joiner;
@@ -23,7 +23,6 @@ package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.TypedArray;
import com.threerings.util.Boxed;
import com.threerings.util.Joiner;
@@ -21,11 +21,11 @@
package com.threerings.presents.dobj {
import com.threerings.util.Joiner;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Joiner;
/**
* A common parent class for all events that are associated with a name
* (in some cases a field name, in other cases just an identifying name).
@@ -21,11 +21,10 @@
package com.threerings.presents.dobj {
import com.threerings.util.Joiner;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Joiner;
/**
* An object removed event is dispatched when an object is removed from an
@@ -21,14 +21,13 @@
package com.threerings.presents.dobj {
import com.threerings.util.Arrays;
import com.threerings.io.Streamable;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.io.TypedArray;
import com.threerings.util.Arrays;
/**
* An oid list is used to store lists of object ids. The list will not
* allow duplicate ids. This class is not synchronized, with the
@@ -21,7 +21,6 @@
package com.threerings.presents.net {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.TypedArray;
@@ -22,7 +22,6 @@
package com.threerings.presents.net {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
public class AuthResponse extends DownstreamMessage
{
@@ -21,11 +21,11 @@
package com.threerings.presents.net {
import com.threerings.presents.dobj.DObject;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.presents.dobj.DObject;
public class AuthResponseData extends DObject
{
/** A constant used to indicate a successful authentication. */
@@ -20,9 +20,9 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.presents.net {
import com.threerings.io.streamers.ArrayStreamer;
import com.threerings.io.TypedArray;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.TypedArray;
import com.threerings.io.streamers.ArrayStreamer;
public class CompoundDownstreamMessage extends DownstreamMessage
{
@@ -21,7 +21,6 @@
package com.threerings.presents.net {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.TypedArray;
import com.threerings.io.streamers.ArrayStreamer;
@@ -22,7 +22,6 @@
package com.threerings.presents.net {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
public /* abstract */ class Credentials extends SimpleStreamableObject
@@ -21,11 +21,10 @@
package com.threerings.presents.net {
import com.threerings.presents.dobj.DEvent;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.presents.dobj.DEvent;
public class ForwardEventRequest extends UpstreamMessage
{
/**
@@ -21,10 +21,10 @@
package com.threerings.presents.net {
import com.threerings.presents.dobj.DObject;
import com.threerings.io.ObjectInputStream;
import com.threerings.presents.dobj.DObject;
public class ObjectResponse extends DownstreamMessage
{
public function getObject () :DObject
@@ -23,11 +23,9 @@ package com.threerings.presents.net {
import flash.utils.getTimer;
import com.threerings.util.Long;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.Long;
public class PongResponse extends DownstreamMessage
{
@@ -23,7 +23,6 @@ package com.threerings.presents.net {
import com.adobe.crypto.MD5;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Joiner;
@@ -21,9 +21,9 @@
package com.threerings.presents.net {
import com.threerings.io.Streamable;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.Short;
@@ -21,12 +21,11 @@
package com.threerings.presents.net {
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Joiner;
import com.threerings.util.Name;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
public class UsernamePasswordCreds extends Credentials
{
/**
@@ -24,6 +24,7 @@ package com.threerings.presents.peer.data {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject;
import com.threerings.util.Name;
import com.threerings.presents.dobj.DSet_Entry;
@@ -24,17 +24,13 @@ package com.threerings.util {
import flash.display.DisplayObject;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.errors.IllegalOperationError;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IOErrorEvent;
import flash.utils.ByteArray;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
import flash.utils.ByteArray;
/**
* Allows you to load an embeded SWF stored as a ByteArray then access any stored classes
@@ -22,8 +22,8 @@
package com.threerings.util {
import mx.resources.IResourceBundle;
import mx.resources.ResourceManager;
import mx.resources.IResourceManager;
import mx.resources.ResourceManager;
/**
* A message bundle provides an easy mechanism by which to obtain
@@ -21,7 +21,6 @@
package com.threerings.util {
import mx.resources.IResourceBundle;
import mx.resources.Locale;
import mx.resources.ResourceManager;
-2
View File
@@ -21,8 +21,6 @@
package com.threerings.util {
import com.threerings.util.Equalable;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
@@ -21,12 +21,10 @@
package com.threerings.util {
import flash.net.registerClassAlias; // function import
import flash.net.ObjectEncoding;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.net.ObjectEncoding;
import flash.net.registerClassAlias;
import flash.utils.ByteArray;
import flash.utils.Dictionary;
import flash.utils.Endian;