Renamed some "inner" classes, removed debugging lines.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4152 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-26 22:39:31 +00:00
parent fdfce50d01
commit cdd7a64b04
8 changed files with 9 additions and 17 deletions
@@ -67,7 +67,7 @@ public class ChatMarshaller extends InvocationMarshaller
// documentation inherited from interface // documentation inherited from interface
public function tell (arg1 :Client, arg2 :Name, arg3 :String, arg4 :TellListener) :void public function tell (arg1 :Client, arg2 :Name, arg3 :String, arg4 :TellListener) :void
{ {
var listener4 :TellMarshaller = new TellMarshaller(); var listener4 :ChatMarshaller_TellMarshaller = new ChatMarshaller_TellMarshaller();
listener4.listener = arg4; listener4.listener = arg4;
sendRequest(arg1, TELL, [ arg2, arg3, listener4 ]); sendRequest(arg1, TELL, [ arg2, arg3, listener4 ]);
} }
@@ -6,7 +6,7 @@ import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.crowd.chat.client.TellListener; import com.threerings.crowd.chat.client.TellListener;
public class TellMarshaller extends InvocationMarshaller_ListenerMarshaller public class ChatMarshaller_TellMarshaller extends InvocationMarshaller_ListenerMarshaller
{ {
/** The method id used to dispatch {@link #tellSucceeded} /** The method id used to dispatch {@link #tellSucceeded}
* responses. */ * responses. */
@@ -15,7 +15,6 @@ public class ArrayStreamer extends Streamer
public function ArrayStreamer (jname :String = "[Ljava.lang.Object;") public function ArrayStreamer (jname :String = "[Ljava.lang.Object;")
{ {
super(TypedArray, jname); super(TypedArray, jname);
trace("got new ArrayStreamer for " + jname);
var secondChar :String = jname.charAt(1); var secondChar :String = jname.charAt(1);
if (secondChar === "[") { if (secondChar === "[") {
@@ -69,7 +68,6 @@ public class ArrayStreamer extends Streamer
{ {
var ta :TypedArray = new TypedArray(_jname); var ta :TypedArray = new TypedArray(_jname);
ta.length = ins.readInt(); ta.length = ins.readInt();
trace("Read array length as: " + ta.length);
return ta; return ta;
} }
@@ -38,9 +38,9 @@ public class InvocationMarshaller_ListenerMarshaller
// documentation inherited from interface // documentation inherited from interface
public function requestFailed (cause :String) :void public function requestFailed (cause :String) :void
{ {
omgr.postEvent(new InvocationResponseEvent( // omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, REQUEST_FAILED_RSPID, // callerOid, requestId, REQUEST_FAILED_RSPID,
[ cause ])); // [ cause ]));
} }
/** /**
@@ -18,7 +18,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
public function getTimeOid ( public function getTimeOid (
arg1 :Client, arg2 :String, arg3 :GotTimeBaseListener) :void arg1 :Client, arg2 :String, arg3 :GotTimeBaseListener) :void
{ {
var listener3 :GotTimeBaseMarshaller = new GotTimeBaseMarshaller(); var listener3 :TimeBaseMarshaller_GotTimeBaseMarshaller = new TimeBaseMarshaller_GotTimeBaseMarshaller();
listener3.listener = arg3; listener3.listener = arg3;
sendRequest(arg1, GET_TIME_OID, [arg2, listener3]); sendRequest(arg1, GET_TIME_OID, [arg2, listener3]);
} }
@@ -5,7 +5,7 @@ import com.threerings.presents.client.GotTimeBaseListener;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.dobj.InvocationResponseEvent;
// TODO: this will be autogenerated // TODO: this will be autogenerated
public class GotTimeBaseMarshaller public class TimeBaseMarshaller_GotTimeBaseMarshaller
extends InvocationMarshaller_ListenerMarshaller extends InvocationMarshaller_ListenerMarshaller
implements GotTimeBaseListener implements GotTimeBaseListener
{ {
@@ -13,8 +13,8 @@ public class GotTimeBaseMarshaller
public function gotTimeOid (arg1 :int) :void public function gotTimeOid (arg1 :int) :void
{ {
omgr.postEvent(new InvocationResponseEvent( // omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, GOT_TIME_OID, [ arg1 ])); // callerOid, requestId, GOT_TIME_OID, [ arg1 ]));
} }
public override function dispatchResponse (methodId :int, args :Array) :void public override function dispatchResponse (methodId :int, args :Array) :void
@@ -103,7 +103,6 @@ public class DObject // extends EventDispatcher
public function postMessage (name :String, args :Array) :void public function postMessage (name :String, args :Array) :void
{ {
trace("posting message: " + name + ", " + args);
postEvent(new MessageEvent(_oid, name, args)); postEvent(new MessageEvent(_oid, name, args));
} }
@@ -89,15 +89,10 @@ public class SceneModel
// documentation inherited from interface Streamable // documentation inherited from interface Streamable
public function readObject (ins :ObjectInputStream) :void public function readObject (ins :ObjectInputStream) :void
{ {
trace("Reading sceneId");
sceneId = ins.readInt(); sceneId = ins.readInt();
trace("Reading name (sceneId=" + sceneId + ")");
name = (ins.readField(String) as String); name = (ins.readField(String) as String);
trace("Reading version (name=" + name + ")");
version = ins.readInt(); version = ins.readInt();
trace("Reading auxes (version=" + version + ")");
auxModels = (ins.readObject() as TypedArray); auxModels = (ins.readObject() as TypedArray);
trace("auxes=" + auxModels);
} }
/** /**