Use the valueOf factory methods pretty much everywhere.
These are the preferred way to get instances of Boolean, Byte, Short, Character, Integer, Long, Float, and Double object. It's always made sense for Boolean objects, and with 1.5 these factory methods were blessed as the proper way to get instances unless one absolutely needed a distinct object. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4145 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AdminService.java,v 1.4 2004/08/27 02:12:23 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -64,6 +64,7 @@ public class AdminMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -64,6 +64,7 @@ public class AdminDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: BuilderModel.java,v 1.6 2004/08/27 02:12:26 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -107,7 +107,7 @@ public class BuilderModel
|
|||||||
*/
|
*/
|
||||||
public void setSelectedComponent (ComponentClass cclass, int cid)
|
public void setSelectedComponent (ComponentClass cclass, int cid)
|
||||||
{
|
{
|
||||||
_selected.put(cclass, new Integer(cid));
|
_selected.put(cclass, Integer.valueOf(cid));
|
||||||
notifyListeners(BuilderModelListener.COMPONENT_CHANGED);
|
notifyListeners(BuilderModelListener.COMPONENT_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -504,7 +504,7 @@ public class ComponentBundlerTask extends Task
|
|||||||
Tuple key = new Tuple(cclass, cname);
|
Tuple key = new Tuple(cclass, cname);
|
||||||
Integer cid = (Integer)get(key);
|
Integer cid = (Integer)get(key);
|
||||||
if (cid == null) {
|
if (cid == null) {
|
||||||
cid = new Integer(++_nextCID);
|
cid = Integer.valueOf(++_nextCID);
|
||||||
put(key, cid);
|
put(key, cid);
|
||||||
}
|
}
|
||||||
return cid.intValue();
|
return cid.intValue();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SpeakService.java,v 1.3 2004/08/27 02:12:30 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -52,7 +52,7 @@ public class ChatMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, TELL_SUCCEEDED,
|
callerOid, requestId, TELL_SUCCEEDED,
|
||||||
new Object[] { new Long(arg1), arg2 }));
|
new Object[] { Long.valueOf(arg1), arg2 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -66,6 +66,7 @@ public class ChatMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -43,7 +43,7 @@ public class SpeakMarshaller extends InvocationMarshaller
|
|||||||
public void speak (Client arg1, String arg2, byte arg3)
|
public void speak (Client arg1, String arg2, byte arg3)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, SPEAK, new Object[] {
|
sendRequest(arg1, SPEAK, new Object[] {
|
||||||
arg2, new Byte(arg3)
|
arg2, Byte.valueOf(arg3)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SpeakObject.java,v 1.4 2004/08/27 02:12:31 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -80,6 +80,7 @@ public class ChatDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -64,6 +64,7 @@ public class SpeakDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: BodyService.java,v 1.2 2004/08/27 02:12:32 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public class LocationDecoder extends InvocationDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: LocationReceiver.java,v 1.2 2004/08/27 02:12:33 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class OccupantDirector extends BasicDirector
|
|||||||
{
|
{
|
||||||
// make sure we're somewhere
|
// make sure we're somewhere
|
||||||
return (_place == null) ? null :
|
return (_place == null) ? null :
|
||||||
(OccupantInfo)_place.occupantInfo.get(new Integer(bodyOid));
|
(OccupantInfo)_place.occupantInfo.get(Integer.valueOf(bodyOid));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -43,7 +43,7 @@ public class BodyMarshaller extends InvocationMarshaller
|
|||||||
public void setIdle (Client arg1, boolean arg2)
|
public void setIdle (Client arg1, boolean arg2)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, SET_IDLE, new Object[] {
|
sendRequest(arg1, SET_IDLE, new Object[] {
|
||||||
new Boolean(arg2)
|
Boolean.valueOf(arg2)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ public class BodyObject extends ClientObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.location;
|
int ovalue = this.location;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
LOCATION, new Integer(value), new Integer(ovalue));
|
LOCATION, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.location = value;
|
this.location = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,7 +191,7 @@ public class BodyObject extends ClientObject
|
|||||||
{
|
{
|
||||||
byte ovalue = this.status;
|
byte ovalue = this.status;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
STATUS, new Byte(value), new Byte(ovalue));
|
STATUS, Byte.valueOf(value), Byte.valueOf(ovalue));
|
||||||
this.status = value;
|
this.status = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -65,6 +65,7 @@ public class LocationMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -89,7 +90,7 @@ public class LocationMarshaller extends InvocationMarshaller
|
|||||||
LocationMarshaller.MoveMarshaller listener3 = new LocationMarshaller.MoveMarshaller();
|
LocationMarshaller.MoveMarshaller listener3 = new LocationMarshaller.MoveMarshaller();
|
||||||
listener3.listener = arg3;
|
listener3.listener = arg3;
|
||||||
sendRequest(arg1, MOVE_TO, new Object[] {
|
sendRequest(arg1, MOVE_TO, new Object[] {
|
||||||
new Integer(arg2), listener3
|
Integer.valueOf(arg2), listener3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class OccupantInfo extends SimpleStreamableObject
|
|||||||
*/
|
*/
|
||||||
public OccupantInfo (BodyObject body)
|
public OccupantInfo (BodyObject body)
|
||||||
{
|
{
|
||||||
bodyOid = new Integer(body.getOid());
|
bodyOid = Integer.valueOf(body.getOid());
|
||||||
username = body.getVisibleName();
|
username = body.getVisibleName();
|
||||||
status = body.status;
|
status = body.status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -64,6 +64,7 @@ public class BodyDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -71,6 +71,7 @@ public class LocationDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ public class LocationProvider
|
|||||||
try {
|
try {
|
||||||
PlaceObject pold = (PlaceObject)_omgr.getObject(oldloc);
|
PlaceObject pold = (PlaceObject)_omgr.getObject(oldloc);
|
||||||
if (pold != null) {
|
if (pold != null) {
|
||||||
Integer key = new Integer(bodoid);
|
Integer key = Integer.valueOf(bodoid);
|
||||||
pold.startTransaction();
|
pold.startTransaction();
|
||||||
try {
|
try {
|
||||||
// remove their occupant info (which is keyed on oid)
|
// remove their occupant info (which is keyed on oid)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class LocationSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, LocationDecoder.RECEIVER_CODE, LocationDecoder.FORCED_MOVE,
|
target, LocationDecoder.RECEIVER_CODE, LocationDecoder.FORCED_MOVE,
|
||||||
new Object[] { new Integer(arg1) });
|
new Object[] { Integer.valueOf(arg1) });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ public class PlaceManager
|
|||||||
// if their occupant info hasn't been removed (which may be the
|
// if their occupant info hasn't been removed (which may be the
|
||||||
// case if they logged off rather than left via a MoveTo request),
|
// case if they logged off rather than left via a MoveTo request),
|
||||||
// we need to get it on out of here
|
// we need to get it on out of here
|
||||||
Integer key = new Integer(bodyOid);
|
Integer key = Integer.valueOf(bodyOid);
|
||||||
if (_plobj.occupantInfo.containsKey(key)) {
|
if (_plobj.occupantInfo.containsKey(key)) {
|
||||||
_plobj.removeFromOccupantInfo(key);
|
_plobj.removeFromOccupantInfo(key);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Boolean(in.readBoolean());
|
return Boolean.valueOf(in.readBoolean());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -108,7 +108,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Byte(in.readByte());
|
return Byte.valueOf(in.readByte());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -135,7 +135,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Short(in.readShort());
|
return Short.valueOf(in.readShort());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -162,7 +162,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Character(in.readChar());
|
return Character.valueOf(in.readChar());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -189,7 +189,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Integer(in.readInt());
|
return Integer.valueOf(in.readInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -216,7 +216,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Long(in.readLong());
|
return Long.valueOf(in.readLong());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -243,7 +243,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Float(in.readFloat());
|
return Float.valueOf(in.readFloat());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -270,7 +270,7 @@ public class BasicStreamers
|
|||||||
public Object createObject (ObjectInputStream in)
|
public Object createObject (ObjectInputStream in)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
return new Double(in.readDouble());
|
return Double.valueOf(in.readDouble());
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SimpleStreamableObject.java,v 1.2 2004/08/27 02:12:36 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TrackedStreamableObject.java,v 1.2 2004/08/27 02:12:36 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ public class TileFringer
|
|||||||
} else if (weebits != 0) {
|
} else if (weebits != 0) {
|
||||||
index = BITS_TO_INDEX[weebits];
|
index = BITS_TO_INDEX[weebits];
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
indexes.add(new Integer(index));
|
indexes.add(Integer.valueOf(index));
|
||||||
}
|
}
|
||||||
weebits = 0;
|
weebits = 0;
|
||||||
}
|
}
|
||||||
@@ -268,7 +268,7 @@ public class TileFringer
|
|||||||
if (weebits != 0) {
|
if (weebits != 0) {
|
||||||
index = BITS_TO_INDEX[weebits];
|
index = BITS_TO_INDEX[weebits];
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
indexes.add(new Integer(index));
|
indexes.add(Integer.valueOf(index));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MapFileTileSetIDBroker.java,v 1.8 2004/08/27 02:12:44 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -93,7 +93,7 @@ public class MapFileTileSetIDBroker implements TileSetIDBroker
|
|||||||
{
|
{
|
||||||
Integer tsid = (Integer)_map.get(tileSetName);
|
Integer tsid = (Integer)_map.get(tileSetName);
|
||||||
if (tsid == null) {
|
if (tsid == null) {
|
||||||
tsid = new Integer(++_nextTileSetID);
|
tsid = Integer.valueOf(++_nextTileSetID);
|
||||||
_map.put(tileSetName, tsid);
|
_map.put(tileSetName, tsid);
|
||||||
}
|
}
|
||||||
return tsid.intValue();
|
return tsid.intValue();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -72,6 +72,7 @@ public class LobbyDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -65,6 +65,7 @@ public class LobbyMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -97,6 +98,7 @@ public class LobbyMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: LobbyService.java,v 1.5 2004/08/27 02:12:50 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -44,7 +44,7 @@ public class SimulatorMarshaller extends InvocationMarshaller
|
|||||||
public void createGame (Client arg1, GameConfig arg2, String arg3, int arg4)
|
public void createGame (Client arg1, GameConfig arg2, String arg3, int arg4)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, CREATE_GAME, new Object[] {
|
sendRequest(arg1, CREATE_GAME, new Object[] {
|
||||||
arg2, arg3, new Integer(arg4)
|
arg2, arg3, Integer.valueOf(arg4)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -65,6 +65,7 @@ public class SimulatorDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ public class AutoFringer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// otherwise, it's a mask.. look for it in the cache..
|
// otherwise, it's a mask.. look for it in the cache..
|
||||||
Long maskkey = new Long((((long) baseset) << 32) +
|
Long maskkey = Long.valueOf((((long) baseset) << 32) +
|
||||||
(fringeset << 16) + index);
|
(fringeset << 16) + index);
|
||||||
BufferedImage img = (BufferedImage)masks.get(maskkey);
|
BufferedImage img = (BufferedImage)masks.get(maskkey);
|
||||||
if (img == null) {
|
if (img == null) {
|
||||||
@@ -261,7 +261,7 @@ public class AutoFringer
|
|||||||
} else if (weebits != 0) {
|
} else if (weebits != 0) {
|
||||||
index = BITS_TO_INDEX[weebits];
|
index = BITS_TO_INDEX[weebits];
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
indexes.add(new Integer(index));
|
indexes.add(Integer.valueOf(index));
|
||||||
}
|
}
|
||||||
weebits = 0;
|
weebits = 0;
|
||||||
}
|
}
|
||||||
@@ -269,7 +269,7 @@ public class AutoFringer
|
|||||||
if (weebits != 0) {
|
if (weebits != 0) {
|
||||||
index = BITS_TO_INDEX[weebits];
|
index = BITS_TO_INDEX[weebits];
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
indexes.add(new Integer(index));
|
indexes.add(Integer.valueOf(index));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public class CardGameDecoder extends InvocationDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ public class Card implements DSet.Entry, Comparable, CardCodes
|
|||||||
public Comparable getKey ()
|
public Comparable getKey ()
|
||||||
{
|
{
|
||||||
if (_key == null) {
|
if (_key == null) {
|
||||||
_key = new Byte(_value);
|
_key = Byte.valueOf(_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _key;
|
return _key;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class CardGameSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.CARDS_TRANSFERRED_BETWEEN_PLAYERS,
|
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.CARDS_TRANSFERRED_BETWEEN_PLAYERS,
|
||||||
new Object[] { new Integer(arg1), new Integer(arg2), new Integer(arg3) });
|
new Object[] { Integer.valueOf(arg1), Integer.valueOf(arg2), Integer.valueOf(arg3) });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,7 +55,7 @@ public class CardGameSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.RECEIVED_CARDS_FROM_PLAYER,
|
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.RECEIVED_CARDS_FROM_PLAYER,
|
||||||
new Object[] { new Integer(arg1), arg2 });
|
new Object[] { Integer.valueOf(arg1), arg2 });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +67,7 @@ public class CardGameSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.RECEIVED_HAND,
|
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.RECEIVED_HAND,
|
||||||
new Object[] { new Integer(arg1), arg2 });
|
new Object[] { Integer.valueOf(arg1), arg2 });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -79,7 +79,7 @@ public class CardGameSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.SENT_CARDS_TO_PLAYER,
|
target, CardGameDecoder.RECEIVER_CODE, CardGameDecoder.SENT_CARDS_TO_PLAYER,
|
||||||
new Object[] { new Integer(arg1), arg2 });
|
new Object[] { Integer.valueOf(arg1), arg2 });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -44,7 +44,7 @@ public class TrickCardGameMarshaller extends InvocationMarshaller
|
|||||||
public void playCard (Client arg1, Card arg2, int arg3)
|
public void playCard (Client arg1, Card arg2, int arg3)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, PLAY_CARD, new Object[] {
|
sendRequest(arg1, PLAY_CARD, new Object[] {
|
||||||
arg2, new Integer(arg3)
|
arg2, Integer.valueOf(arg3)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ public class TrickCardGameMarshaller extends InvocationMarshaller
|
|||||||
public void sendCardsToPlayer (Client arg1, int arg2, Card[] arg3)
|
public void sendCardsToPlayer (Client arg1, int arg2, Card[] arg3)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, SEND_CARDS_TO_PLAYER, new Object[] {
|
sendRequest(arg1, SEND_CARDS_TO_PLAYER, new Object[] {
|
||||||
new Integer(arg2), arg3
|
Integer.valueOf(arg2), arg3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -78,6 +78,7 @@ public class TrickCardGameDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public class ParlorDecoder extends InvocationDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -54,7 +54,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, INVITE_RECEIVED,
|
callerOid, requestId, INVITE_RECEIVED,
|
||||||
new Object[] { new Integer(arg1) }));
|
new Object[] { Integer.valueOf(arg1) }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -68,6 +68,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,7 +87,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, TABLE_CREATED,
|
callerOid, requestId, TABLE_CREATED,
|
||||||
new Object[] { new Integer(arg1) }));
|
new Object[] { Integer.valueOf(arg1) }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -100,6 +101,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -113,7 +115,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
ListenerMarshaller listener3 = new ListenerMarshaller();
|
ListenerMarshaller listener3 = new ListenerMarshaller();
|
||||||
listener3.listener = arg3;
|
listener3.listener = arg3;
|
||||||
sendRequest(arg1, CANCEL, new Object[] {
|
sendRequest(arg1, CANCEL, new Object[] {
|
||||||
new Integer(arg2), listener3
|
Integer.valueOf(arg2), listener3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,7 +128,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
ParlorMarshaller.TableMarshaller listener5 = new ParlorMarshaller.TableMarshaller();
|
ParlorMarshaller.TableMarshaller listener5 = new ParlorMarshaller.TableMarshaller();
|
||||||
listener5.listener = arg5;
|
listener5.listener = arg5;
|
||||||
sendRequest(arg1, CREATE_TABLE, new Object[] {
|
sendRequest(arg1, CREATE_TABLE, new Object[] {
|
||||||
new Integer(arg2), arg3, arg4, listener5
|
Integer.valueOf(arg2), arg3, arg4, listener5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,7 +154,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
ListenerMarshaller listener5 = new ListenerMarshaller();
|
ListenerMarshaller listener5 = new ListenerMarshaller();
|
||||||
listener5.listener = arg5;
|
listener5.listener = arg5;
|
||||||
sendRequest(arg1, JOIN_TABLE, new Object[] {
|
sendRequest(arg1, JOIN_TABLE, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), new Integer(arg4), listener5
|
Integer.valueOf(arg2), Integer.valueOf(arg3), Integer.valueOf(arg4), listener5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,7 +167,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
ListenerMarshaller listener4 = new ListenerMarshaller();
|
ListenerMarshaller listener4 = new ListenerMarshaller();
|
||||||
listener4.listener = arg4;
|
listener4.listener = arg4;
|
||||||
sendRequest(arg1, LEAVE_TABLE, new Object[] {
|
sendRequest(arg1, LEAVE_TABLE, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), listener4
|
Integer.valueOf(arg2), Integer.valueOf(arg3), listener4
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,7 +180,7 @@ public class ParlorMarshaller extends InvocationMarshaller
|
|||||||
ListenerMarshaller listener5 = new ListenerMarshaller();
|
ListenerMarshaller listener5 = new ListenerMarshaller();
|
||||||
listener5.listener = arg5;
|
listener5.listener = arg5;
|
||||||
sendRequest(arg1, RESPOND, new Object[] {
|
sendRequest(arg1, RESPOND, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), arg4, listener5
|
Integer.valueOf(arg2), Integer.valueOf(arg3), arg4, listener5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class Table
|
|||||||
public Table (int lobbyOid, TableConfig tconfig, GameConfig config)
|
public Table (int lobbyOid, TableConfig tconfig, GameConfig config)
|
||||||
{
|
{
|
||||||
// assign a unique table id
|
// assign a unique table id
|
||||||
tableId = new Integer(++_tableIdCounter);
|
tableId = Integer.valueOf(++_tableIdCounter);
|
||||||
|
|
||||||
// keep track of our lobby oid
|
// keep track of our lobby oid
|
||||||
this.lobbyOid = lobbyOid;
|
this.lobbyOid = lobbyOid;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TableLobbyObject.java,v 1.3 2004/08/27 02:20:13 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.state;
|
int ovalue = this.state;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
STATE, new Integer(value), new Integer(ovalue));
|
STATE, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.state = value;
|
this.state = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,7 +310,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
boolean ovalue = this.isRated;
|
boolean ovalue = this.isRated;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
IS_RATED, new Boolean(value), new Boolean(ovalue));
|
IS_RATED, Boolean.valueOf(value), Boolean.valueOf(ovalue));
|
||||||
this.isRated = value;
|
this.isRated = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +326,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
boolean ovalue = this.isPrivate;
|
boolean ovalue = this.isPrivate;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
IS_PRIVATE, new Boolean(value), new Boolean(ovalue));
|
IS_PRIVATE, Boolean.valueOf(value), Boolean.valueOf(ovalue));
|
||||||
this.isPrivate = value;
|
this.isPrivate = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -392,7 +392,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
boolean ovalue = this.winners[index];
|
boolean ovalue = this.winners[index];
|
||||||
requestElementUpdate(
|
requestElementUpdate(
|
||||||
WINNERS, index, new Boolean(value), new Boolean(ovalue));
|
WINNERS, index, Boolean.valueOf(value), Boolean.valueOf(ovalue));
|
||||||
this.winners[index] = value;
|
this.winners[index] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -408,7 +408,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.roundId;
|
int ovalue = this.roundId;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
ROUND_ID, new Integer(value), new Integer(ovalue));
|
ROUND_ID, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.roundId = value;
|
this.roundId = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -441,7 +441,7 @@ public class GameObject extends PlaceObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.playerStatus[index];
|
int ovalue = this.playerStatus[index];
|
||||||
requestElementUpdate(
|
requestElementUpdate(
|
||||||
PLAYER_STATUS, index, new Integer(value), new Integer(ovalue));
|
PLAYER_STATUS, index, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.playerStatus[index] = value;
|
this.playerStatus[index] = value;
|
||||||
}
|
}
|
||||||
// AUTO-GENERATED: METHODS END
|
// AUTO-GENERATED: METHODS END
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -63,6 +63,7 @@ public class GameDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -110,6 +110,7 @@ public class ParlorDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class ParlorSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.GAME_IS_READY,
|
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.GAME_IS_READY,
|
||||||
new Object[] { new Integer(arg1) });
|
new Object[] { Integer.valueOf(arg1) });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,7 +55,7 @@ public class ParlorSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE,
|
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3 });
|
new Object[] { Integer.valueOf(arg1), arg2, arg3 });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +67,7 @@ public class ParlorSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE_CANCELLATION,
|
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE_CANCELLATION,
|
||||||
new Object[] { new Integer(arg1) });
|
new Object[] { Integer.valueOf(arg1) });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -79,7 +79,7 @@ public class ParlorSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE_RESPONSE,
|
target, ParlorDecoder.RECEIVER_CODE, ParlorDecoder.RECEIVED_INVITE_RESPONSE,
|
||||||
new Object[] { new Integer(arg1), new Integer(arg2), arg3 });
|
new Object[] { Integer.valueOf(arg1), Integer.valueOf(arg2), arg3 });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ public class ClientDObjectMgr
|
|||||||
*/
|
*/
|
||||||
public void registerFlushDelay (Class objclass, long delay)
|
public void registerFlushDelay (Class objclass, long delay)
|
||||||
{
|
{
|
||||||
_delays.put(objclass, new Long(delay));
|
_delays.put(objclass, Long.valueOf(delay));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -419,7 +419,7 @@ public class ClientDObjectMgr
|
|||||||
* The object action is used to queue up a subscribe or unsubscribe
|
* The object action is used to queue up a subscribe or unsubscribe
|
||||||
* request.
|
* request.
|
||||||
*/
|
*/
|
||||||
protected class ObjectAction
|
protected static final class ObjectAction
|
||||||
{
|
{
|
||||||
public int oid;
|
public int oid;
|
||||||
public Subscriber target;
|
public Subscriber target;
|
||||||
@@ -438,7 +438,7 @@ public class ClientDObjectMgr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static class PendingRequest
|
protected static final class PendingRequest
|
||||||
{
|
{
|
||||||
public int oid;
|
public int oid;
|
||||||
public ArrayList targets = new ArrayList();
|
public ArrayList targets = new ArrayList();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationReceiver.java,v 1.7 2004/08/27 02:20:18 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationService.java,v 1.3 2004/08/27 02:20:18 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TimeBaseService.java,v 1.4 2004/08/27 02:20:18 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -50,7 +50,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, GOT_TIME_OID,
|
callerOid, requestId, GOT_TIME_OID,
|
||||||
new Object[] { new Integer(arg1) }));
|
new Object[] { Integer.valueOf(arg1) }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -64,6 +64,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public class TimeBaseObject extends DObject
|
|||||||
{
|
{
|
||||||
long ovalue = this.evenBase;
|
long ovalue = this.evenBase;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
EVEN_BASE, new Long(value), new Long(ovalue));
|
EVEN_BASE, Long.valueOf(value), Long.valueOf(ovalue));
|
||||||
this.evenBase = value;
|
this.evenBase = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ public class TimeBaseObject extends DObject
|
|||||||
{
|
{
|
||||||
long ovalue = this.oddBase;
|
long ovalue = this.oddBase;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
ODD_BASE, new Long(value), new Long(ovalue));
|
ODD_BASE, Long.valueOf(value), Long.valueOf(ovalue));
|
||||||
this.oddBase = value;
|
this.oddBase = value;
|
||||||
}
|
}
|
||||||
// AUTO-GENERATED: METHODS END
|
// AUTO-GENERATED: METHODS END
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ public class InvocationManager
|
|||||||
bootlist.add(marsh);
|
bootlist.add(marsh);
|
||||||
}
|
}
|
||||||
|
|
||||||
_recentRegServices.put(new Integer(invCode),
|
_recentRegServices.put(Integer.valueOf(invCode),
|
||||||
marsh.getClass().getName());
|
marsh.getClass().getName());
|
||||||
|
|
||||||
// Log.info("Registered service [marsh=" + marsh + "].");
|
// Log.info("Registered service [marsh=" + marsh + "].");
|
||||||
@@ -229,7 +229,7 @@ public class InvocationManager
|
|||||||
"registration was already cleared [code=" + invCode +
|
"registration was already cleared [code=" + invCode +
|
||||||
", methId=" + methodId +
|
", methId=" + methodId +
|
||||||
", args=" + StringUtil.toString(args) + ", marsh=" +
|
", args=" + StringUtil.toString(args) + ", marsh=" +
|
||||||
_recentRegServices.get(new Integer(invCode)) + "].");
|
_recentRegServices.get(Integer.valueOf(invCode)) + "].");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ public class PresentsClient
|
|||||||
|
|
||||||
// let the client know that the rug has been yanked out
|
// let the client know that the rug has been yanked out
|
||||||
// from under their ass
|
// from under their ass
|
||||||
Object[] args = new Object[] { new Integer(clobj.getOid()) };
|
Object[] args = new Object[] { Integer.valueOf(clobj.getOid()) };
|
||||||
_clobj.postMessage(ClientObject.CLOBJ_CHANGED, args);
|
_clobj.postMessage(ClientObject.CLOBJ_CHANGED, args);
|
||||||
|
|
||||||
// call down to any derived classes
|
// call down to any derived classes
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -63,6 +63,7 @@ public class TimeBaseDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,21 +69,21 @@ public class GenUtil
|
|||||||
public static String boxArgument (Class clazz, String name)
|
public static String boxArgument (Class clazz, String name)
|
||||||
{
|
{
|
||||||
if (clazz == Boolean.TYPE) {
|
if (clazz == Boolean.TYPE) {
|
||||||
return "new Boolean(" + name + ")";
|
return "Boolean.valueOf(" + name + ")";
|
||||||
} else if (clazz == Byte.TYPE) {
|
} else if (clazz == Byte.TYPE) {
|
||||||
return "new Byte(" + name + ")";
|
return "Byte.valueOf(" + name + ")";
|
||||||
} else if (clazz == Character.TYPE) {
|
} else if (clazz == Character.TYPE) {
|
||||||
return "new Character(" + name + ")";
|
return "Character.valueOf(" + name + ")";
|
||||||
} else if (clazz == Short.TYPE) {
|
} else if (clazz == Short.TYPE) {
|
||||||
return "new Short(" + name + ")";
|
return "Short.valueOf(" + name + ")";
|
||||||
} else if (clazz == Integer.TYPE) {
|
} else if (clazz == Integer.TYPE) {
|
||||||
return "new Integer(" + name + ")";
|
return "Integer.valueOf(" + name + ")";
|
||||||
} else if (clazz == Long.TYPE) {
|
} else if (clazz == Long.TYPE) {
|
||||||
return "new Long(" + name + ")";
|
return "Long.valueOf(" + name + ")";
|
||||||
} else if (clazz == Float.TYPE) {
|
} else if (clazz == Float.TYPE) {
|
||||||
return "new Float(" + name + ")";
|
return "Float.valueOf(" + name + ")";
|
||||||
} else if (clazz == Double.TYPE) {
|
} else if (clazz == Double.TYPE) {
|
||||||
return "new Double(" + name + ")";
|
return "Double.valueOf(" + name + ")";
|
||||||
} else {
|
} else {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class ${name}Decoder extends InvocationDecoder
|
|||||||
#end
|
#end
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class ${name}Dispatcher extends InvocationDispatcher
|
|||||||
#end
|
#end
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class ${name}Marshaller extends InvocationMarshaller
|
|||||||
#end
|
#end
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -742,7 +742,7 @@ public abstract class PuzzleController extends GameController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_events.add(new Integer(event));
|
_events.add(Integer.valueOf(event));
|
||||||
if (isSyncingBoards()) {
|
if (isSyncingBoards()) {
|
||||||
_states.add((board == null) ? null : board.clone());
|
_states.add((board == null) ? null : board.clone());
|
||||||
if (board == null) {
|
if (board == null) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PuzzleGameService.java,v 1.3 2004/10/28 19:20:04 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -44,7 +44,7 @@ public class PuzzleGameMarshaller extends InvocationMarshaller
|
|||||||
public void updateProgress (Client arg1, int arg2, int[] arg3)
|
public void updateProgress (Client arg1, int arg2, int[] arg3)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, UPDATE_PROGRESS, new Object[] {
|
sendRequest(arg1, UPDATE_PROGRESS, new Object[] {
|
||||||
new Integer(arg2), arg3
|
Integer.valueOf(arg2), arg3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ public class PuzzleGameMarshaller extends InvocationMarshaller
|
|||||||
public void updateProgressSync (Client arg1, int arg2, int[] arg3, Board[] arg4)
|
public void updateProgressSync (Client arg1, int arg2, int[] arg3, Board[] arg4)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, UPDATE_PROGRESS_SYNC, new Object[] {
|
sendRequest(arg1, UPDATE_PROGRESS_SYNC, new Object[] {
|
||||||
new Integer(arg2), arg3, arg4
|
Integer.valueOf(arg2), arg3, arg4
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public class PuzzleObject extends GameObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.difficulty;
|
int ovalue = this.difficulty;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
DIFFICULTY, new Integer(value), new Integer(ovalue));
|
DIFFICULTY, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.difficulty = value;
|
this.difficulty = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ public class PuzzleObject extends GameObject
|
|||||||
{
|
{
|
||||||
long ovalue = this.seed;
|
long ovalue = this.seed;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
SEED, new Long(value), new Long(ovalue));
|
SEED, Long.valueOf(value), Long.valueOf(ovalue));
|
||||||
this.seed = value;
|
this.seed = value;
|
||||||
}
|
}
|
||||||
// AUTO-GENERATED: METHODS END
|
// AUTO-GENERATED: METHODS END
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -72,6 +72,7 @@ public class PuzzleGameDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class StageSceneObject extends SpotSceneObject
|
|||||||
{
|
{
|
||||||
float ovalue = this.lightLevel;
|
float ovalue = this.lightLevel;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
LIGHT_LEVEL, new Float(value), new Float(ovalue));
|
LIGHT_LEVEL, Float.valueOf(value), Float.valueOf(ovalue));
|
||||||
this.lightLevel = value;
|
this.lightLevel = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ public class StageSceneObject extends SpotSceneObject
|
|||||||
{
|
{
|
||||||
int ovalue = this.lightShade;
|
int ovalue = this.lightShade;
|
||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
LIGHT_SHADE, new Integer(value), new Integer(ovalue));
|
LIGHT_SHADE, Integer.valueOf(value), Integer.valueOf(ovalue));
|
||||||
this.lightShade = value;
|
this.lightShade = value;
|
||||||
}
|
}
|
||||||
// AUTO-GENERATED: METHODS END
|
// AUTO-GENERATED: METHODS END
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -73,6 +73,7 @@ public class StageSceneDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ public class StageSceneManager extends SpotSceneManager
|
|||||||
|
|
||||||
// if they are already standing on this tile, allow it
|
// if they are already standing on this tile, allow it
|
||||||
SceneLocation cloc = (SceneLocation)
|
SceneLocation cloc = (SceneLocation)
|
||||||
_ssobj.occupantLocs.get(new Integer(source.getOid()));
|
_ssobj.occupantLocs.get(Integer.valueOf(source.getOid()));
|
||||||
if (cloc != null) {
|
if (cloc != null) {
|
||||||
StageLocation sloc = (StageLocation) cloc.loc;
|
StageLocation sloc = (StageLocation) cloc.loc;
|
||||||
if (MisoUtil.fullToTile(sloc.x) == tx &&
|
if (MisoUtil.fullToTile(sloc.x) == tx &&
|
||||||
@@ -697,7 +697,7 @@ public class StageSceneManager extends SpotSceneManager
|
|||||||
protected void positionBody (Cluster cl, int bodyOid, ArrayList locs)
|
protected void positionBody (Cluster cl, int bodyOid, ArrayList locs)
|
||||||
{
|
{
|
||||||
SceneLocation sloc = (SceneLocation)
|
SceneLocation sloc = (SceneLocation)
|
||||||
_ssobj.occupantLocs.get(new Integer(bodyOid));
|
_ssobj.occupantLocs.get(Integer.valueOf(bodyOid));
|
||||||
if (sloc == null) {
|
if (sloc == null) {
|
||||||
BodyObject user = (BodyObject)StageServer.omgr.getObject(bodyOid);
|
BodyObject user = (BodyObject)StageServer.omgr.getObject(bodyOid);
|
||||||
String who = (user == null) ? ("" + bodyOid) : user.who();
|
String who = (user == null) ? ("" + bodyOid) : user.who();
|
||||||
@@ -761,7 +761,7 @@ public class StageSceneManager extends SpotSceneManager
|
|||||||
throws InvocationException
|
throws InvocationException
|
||||||
{
|
{
|
||||||
StageOccupantInfo info = (StageOccupantInfo)_ssobj.occupantInfo.get(
|
StageOccupantInfo info = (StageOccupantInfo)_ssobj.occupantInfo.get(
|
||||||
new Integer(target.getOid()));
|
Integer.valueOf(target.getOid()));
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
Log.warning("Have no occinfo for cluster target " +
|
Log.warning("Have no occinfo for cluster target " +
|
||||||
"[where=" + where() + ", init=" + initiator.who() +
|
"[where=" + where() + ", init=" + initiator.who() +
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ public class TestTileLoader implements TileSetIDBroker
|
|||||||
{
|
{
|
||||||
Integer id = (Integer) _idmap.get(tileSetPath);
|
Integer id = (Integer) _idmap.get(tileSetPath);
|
||||||
if (null == id) {
|
if (null == id) {
|
||||||
id = new Integer(_fakeID--);
|
id = Integer.valueOf(_fakeID--);
|
||||||
_idmap.put(tileSetPath, id);
|
_idmap.put(tileSetPath, id);
|
||||||
}
|
}
|
||||||
return id.intValue();
|
return id.intValue();
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ public class KeyboardManager
|
|||||||
// // definitively check whether the key was released
|
// // definitively check whether the key was released
|
||||||
// long delay = _repeatDelay - deltaRelease;
|
// long delay = _repeatDelay - deltaRelease;
|
||||||
// _siid = IntervalManager.register(
|
// _siid = IntervalManager.register(
|
||||||
// this, delay, new Long(_lastPress), false);
|
// this, delay, Long.valueOf(_lastPress), false);
|
||||||
// if (KeyboardManager.DEBUG_INTERVAL) {
|
// if (KeyboardManager.DEBUG_INTERVAL) {
|
||||||
// Log.info("Registered sub-interval " +
|
// Log.info("Registered sub-interval " +
|
||||||
// "[id=" + _siid + "].");
|
// "[id=" + _siid + "].");
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TrackedObject.java,v 1.6 2004/08/28 01:23:31 ray Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public class SceneDecoder extends InvocationDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ public class SceneDirector extends BasicDirector
|
|||||||
}
|
}
|
||||||
|
|
||||||
// update our scene cache
|
// update our scene cache
|
||||||
_scache.put(new Integer(model.sceneId), model);
|
_scache.put(Integer.valueOf(model.sceneId), model);
|
||||||
|
|
||||||
// and pass through to the normal move succeeded handler
|
// and pass through to the normal move succeeded handler
|
||||||
moveSucceeded(placeId, config);
|
moveSucceeded(placeId, config);
|
||||||
@@ -446,7 +446,7 @@ public class SceneDirector extends BasicDirector
|
|||||||
protected SceneModel loadSceneModel (int sceneId)
|
protected SceneModel loadSceneModel (int sceneId)
|
||||||
{
|
{
|
||||||
// first look in the model cache
|
// first look in the model cache
|
||||||
Integer key = new Integer(sceneId);
|
Integer key = Integer.valueOf(sceneId);
|
||||||
SceneModel model = (SceneModel)_scache.get(key);
|
SceneModel model = (SceneModel)_scache.get(key);
|
||||||
|
|
||||||
// load from the repository if it's not cached
|
// load from the repository if it's not cached
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneReceiver.java,v 1.2 2004/08/27 02:20:40 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneService.java,v 1.11 2004/08/27 02:20:40 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -53,7 +53,7 @@ public class SceneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED,
|
callerOid, requestId, MOVE_SUCCEEDED,
|
||||||
new Object[] { new Integer(arg1), arg2 }));
|
new Object[] { Integer.valueOf(arg1), arg2 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The method id used to dispatch {@link #moveSucceededWithScene}
|
/** The method id used to dispatch {@link #moveSucceededWithScene}
|
||||||
@@ -66,7 +66,7 @@ public class SceneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
|
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3 }));
|
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
|
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
|
||||||
@@ -79,7 +79,7 @@ public class SceneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
|
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3 }));
|
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -103,6 +103,7 @@ public class SceneMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -116,7 +117,7 @@ public class SceneMarshaller extends InvocationMarshaller
|
|||||||
SceneMarshaller.SceneMoveMarshaller listener4 = new SceneMarshaller.SceneMoveMarshaller();
|
SceneMarshaller.SceneMoveMarshaller listener4 = new SceneMarshaller.SceneMoveMarshaller();
|
||||||
listener4.listener = arg4;
|
listener4.listener = arg4;
|
||||||
sendRequest(arg1, MOVE_TO, new Object[] {
|
sendRequest(arg1, MOVE_TO, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), listener4
|
Integer.valueOf(arg2), Integer.valueOf(arg3), listener4
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ScenedBodyObject.java,v 1.2 2004/08/27 02:20:42 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -67,6 +67,7 @@ public class SceneDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class SceneSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, SceneDecoder.RECEIVER_CODE, SceneDecoder.FORCED_MOVE,
|
target, SceneDecoder.RECEIVER_CODE, SceneDecoder.FORCED_MOVE,
|
||||||
new Object[] { new Integer(arg1) });
|
new Object[] { Integer.valueOf(arg1) });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class Cluster extends Rectangle
|
|||||||
public Comparable getKey ()
|
public Comparable getKey ()
|
||||||
{
|
{
|
||||||
if (_key == null) {
|
if (_key == null) {
|
||||||
_key = new Integer(clusterOid);
|
_key = Integer.valueOf(clusterOid);
|
||||||
}
|
}
|
||||||
return _key;
|
return _key;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class SceneLocation extends SimpleStreamableObject
|
|||||||
public Comparable getKey ()
|
public Comparable getKey ()
|
||||||
{
|
{
|
||||||
if (_key == null) {
|
if (_key == null) {
|
||||||
_key = new Integer(bodyOid);
|
_key = Integer.valueOf(bodyOid);
|
||||||
}
|
}
|
||||||
return _key;
|
return _key;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -49,7 +49,7 @@ public class SpotMarshaller extends InvocationMarshaller
|
|||||||
InvocationMarshaller.ConfirmMarshaller listener4 = new InvocationMarshaller.ConfirmMarshaller();
|
InvocationMarshaller.ConfirmMarshaller listener4 = new InvocationMarshaller.ConfirmMarshaller();
|
||||||
listener4.listener = arg4;
|
listener4.listener = arg4;
|
||||||
sendRequest(arg1, CHANGE_LOCATION, new Object[] {
|
sendRequest(arg1, CHANGE_LOCATION, new Object[] {
|
||||||
new Integer(arg2), arg3, listener4
|
Integer.valueOf(arg2), arg3, listener4
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ public class SpotMarshaller extends InvocationMarshaller
|
|||||||
public void clusterSpeak (Client arg1, String arg2, byte arg3)
|
public void clusterSpeak (Client arg1, String arg2, byte arg3)
|
||||||
{
|
{
|
||||||
sendRequest(arg1, CLUSTER_SPEAK, new Object[] {
|
sendRequest(arg1, CLUSTER_SPEAK, new Object[] {
|
||||||
arg2, new Byte(arg3)
|
arg2, Byte.valueOf(arg3)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ public class SpotMarshaller extends InvocationMarshaller
|
|||||||
InvocationMarshaller.ConfirmMarshaller listener3 = new InvocationMarshaller.ConfirmMarshaller();
|
InvocationMarshaller.ConfirmMarshaller listener3 = new InvocationMarshaller.ConfirmMarshaller();
|
||||||
listener3.listener = arg3;
|
listener3.listener = arg3;
|
||||||
sendRequest(arg1, JOIN_CLUSTER, new Object[] {
|
sendRequest(arg1, JOIN_CLUSTER, new Object[] {
|
||||||
new Integer(arg2), listener3
|
Integer.valueOf(arg2), listener3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ public class SpotMarshaller extends InvocationMarshaller
|
|||||||
SceneMarshaller.SceneMoveMarshaller listener5 = new SceneMarshaller.SceneMoveMarshaller();
|
SceneMarshaller.SceneMoveMarshaller listener5 = new SceneMarshaller.SceneMoveMarshaller();
|
||||||
listener5.listener = arg5;
|
listener5.listener = arg5;
|
||||||
sendRequest(arg1, TRAVERSE_PORTAL, new Object[] {
|
sendRequest(arg1, TRAVERSE_PORTAL, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), new Integer(arg4), listener5
|
Integer.valueOf(arg2), Integer.valueOf(arg3), Integer.valueOf(arg4), listener5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -89,6 +89,7 @@ public class SpotDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ public class SpotSceneManager extends SceneManager
|
|||||||
super.bodyLeft(bodyOid);
|
super.bodyLeft(bodyOid);
|
||||||
|
|
||||||
// clear out their location information
|
// clear out their location information
|
||||||
_ssobj.removeFromOccupantLocs(new Integer(bodyOid));
|
_ssobj.removeFromOccupantLocs(Integer.valueOf(bodyOid));
|
||||||
|
|
||||||
// clear any cluster they may occupy
|
// clear any cluster they may occupy
|
||||||
removeFromCluster(bodyOid);
|
removeFromCluster(bodyOid);
|
||||||
@@ -413,7 +413,7 @@ public class SpotSceneManager extends SceneManager
|
|||||||
*/
|
*/
|
||||||
protected SceneLocation locationForBody (int bodyOid)
|
protected SceneLocation locationForBody (int bodyOid)
|
||||||
{
|
{
|
||||||
return (SceneLocation)_ssobj.occupantLocs.get(new Integer(bodyOid));
|
return (SceneLocation)_ssobj.occupantLocs.get(Integer.valueOf(bodyOid));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public class ZoneDecoder extends InvocationDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchNotification(methodId, args);
|
super.dispatchNotification(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ public class ZoneDirector extends BasicDirector
|
|||||||
|
|
||||||
// let our zone observers know that we're attempting to switch
|
// let our zone observers know that we're attempting to switch
|
||||||
// zones
|
// zones
|
||||||
notifyObservers(new Integer(zoneId));
|
notifyObservers(Integer.valueOf(zoneId));
|
||||||
|
|
||||||
// check the version of our cached copy of the scene to which
|
// check the version of our cached copy of the scene to which
|
||||||
// we're requesting to move; if we were unable to load it, assume
|
// we're requesting to move; if we were unable to load it, assume
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ZoneReceiver.java,v 1.2 2004/08/27 02:20:50 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ZoneService.java,v 1.8 2004/08/27 02:20:50 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -54,7 +54,7 @@ public class ZoneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED,
|
callerOid, requestId, MOVE_SUCCEEDED,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3 }));
|
new Object[] { Integer.valueOf(arg1), arg2, arg3 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The method id used to dispatch {@link #moveSucceededWithScene}
|
/** The method id used to dispatch {@link #moveSucceededWithScene}
|
||||||
@@ -67,7 +67,7 @@ public class ZoneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
|
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3, arg4 }));
|
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
|
/** The method id used to dispatch {@link #moveSucceededWithUpdates}
|
||||||
@@ -80,7 +80,7 @@ public class ZoneMarshaller extends InvocationMarshaller
|
|||||||
_invId = null;
|
_invId = null;
|
||||||
omgr.postEvent(new InvocationResponseEvent(
|
omgr.postEvent(new InvocationResponseEvent(
|
||||||
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
|
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
|
||||||
new Object[] { new Integer(arg1), arg2, arg3, arg4 }));
|
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -104,6 +104,7 @@ public class ZoneMarshaller extends InvocationMarshaller
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchResponse(methodId, args);
|
super.dispatchResponse(methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -117,7 +118,7 @@ public class ZoneMarshaller extends InvocationMarshaller
|
|||||||
ZoneMarshaller.ZoneMoveMarshaller listener5 = new ZoneMarshaller.ZoneMoveMarshaller();
|
ZoneMarshaller.ZoneMoveMarshaller listener5 = new ZoneMarshaller.ZoneMoveMarshaller();
|
||||||
listener5.listener = arg5;
|
listener5.listener = arg5;
|
||||||
sendRequest(arg1, MOVE_TO, new Object[] {
|
sendRequest(arg1, MOVE_TO, new Object[] {
|
||||||
new Integer(arg2), new Integer(arg3), new Integer(arg4), listener5
|
Integer.valueOf(arg2), Integer.valueOf(arg3), Integer.valueOf(arg4), listener5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ZonedBodyObject.java,v 1.3 2004/08/27 02:20:51 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
|
||||||
// http://www.threerings.net/code/narya/
|
// http://www.threerings.net/code/narya/
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
@@ -68,6 +68,7 @@ public class ZoneDispatcher extends InvocationDispatcher
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
super.dispatchRequest(source, methodId, args);
|
super.dispatchRequest(source, methodId, args);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class ZoneSender extends InvocationSender
|
|||||||
{
|
{
|
||||||
sendNotification(
|
sendNotification(
|
||||||
target, ZoneDecoder.RECEIVER_CODE, ZoneDecoder.FORCED_MOVE,
|
target, ZoneDecoder.RECEIVER_CODE, ZoneDecoder.FORCED_MOVE,
|
||||||
new Object[] { new Integer(arg1), new Integer(arg2) });
|
new Object[] { Integer.valueOf(arg1), Integer.valueOf(arg2) });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user