The first great Three Rings renaming. Cocktail changed to Narya, Cher

changed to Presents and Party changed to Crowd. Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@431 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-11 04:07:54 +00:00
parent ac477756ea
commit 8a4c46badc
170 changed files with 832 additions and 805 deletions
+7 -7
View File
@@ -1,10 +1,10 @@
Cocktail: Party Design -*- outline -*-
Crowd Design -*- outline -*-
* Introduction
The Party layer builds upon the Cher layer through the addition of a few
key services. These services are based around the concept of bodies and
places. A client of the system is represented by a body and that body can
occupy a place. Bodies can communicate with one another through two
The Crowd layer builds upon the Presents layer through the addition of a
few key services. These services are based around the concept of bodies
and places. A client of the system is represented by a body and that body
can occupy a place. Bodies can communicate with one another through two
mechanisms: they can speak which broadcasts their message to all other
bodies that occupy the same place, or they can tell which delivers their
message specifically to one target body regardless of place.
@@ -16,11 +16,11 @@ to specialize the place concept and extend it with functionality specific
to their needs.
* Components
Wherein the individual classes and components that make up the Party
Wherein the individual classes and components that make up the Crowd
framework are described.
** BodyObject
The body object extends the client object from the Cher framework and
The body object extends the client object from the Presents framework and
tracks information like the current place occupied by the body.
** PlaceObject, PlaceManager
+1 -1
View File
@@ -1,4 +1,4 @@
Party Notes -*- outline -*-
Crowd Notes -*- outline -*-
* TODO
Wire up PlaceRegistry code to remove registrations when place objects are
+50 -24
View File
@@ -1,12 +1,19 @@
Cocktail -*- outline -*-
Narya -*- outline -*-
* What is it?
Cocktail is a platform on which multiplayer networked games may be
developed. The platform is (extremely) loosely based around the idea of a
cocktail party. For the most part, this just gives us a useful context
from which to choose names. The basic service of the Cocktail platform is
a simple information sharing mechanism based on the concept of distributed
objects. This layer is called "Cher" for reasons outlined in the Cher
Narya is a platform on which multiplayer networked games may be developed.
The various packages that comprise Narya attempt to be as loosely
connected as possible so that they may be used individually without having
to buy into our entire system. In some cases, packages depend wholesale on
other packages but that is generally only when the depending package
extends or makes serious use of the depended package (the networking layer
is used by the group management layer which is in turn used by the parlor
game layer).
** You brought presents?
One basic service of the Narya platform is a simple information sharing
mechanism based on the concept of distributed objects. This layer is
called Presents for reasons explained and apologized for in the Presents
design notes.
A distributed object has a set of subscribers. Whenever a modification is
@@ -27,15 +34,14 @@ view, controller pattern as well as into other useful patterns.
The primary value of the design is to bring the level of abstraction up
from network connections and packets, to objects and events.
** Getting the party started
Atop the distributed object layer, we further develop the concept of the
cocktail party. Parties tend to take place in rooms and be attended by
groups of people. This is the essence of the next layer of the system: a
framework for providing rooms, with occupants and mechanisms for the
people to move between those rooms. Within the rooms, we provide some
useful basic services like the ability to chat among the occupants of the
room, as well as some non-room-specific facilities like person to person
messaging from anywhere in the system and a location directory.
** Three's a crowd
Atop the Presents package, we've built the Crowd package: a framework for
providing rooms (called places), with occupants (also called bodies) and
mechanisms for the people to move between those rooms. Within the rooms,
we provide some useful basic services like the ability to chat among the
occupants of the room, as well as some non-room-specific facilities like
person to person messaging from anywhere in the system and a location
directory.
Not all games developed with the platform will want to use the room
concept, therefore we attempt at this layer and in all subsequent layers
@@ -45,11 +51,31 @@ leverage some of the useful services without having to bend their design
in uncomfortable ways or hack up some additional interface to the services
we provide.
** Let's play
From here, we branch off into all sorts of interesting directions based on
the different kinds of games that are implemented with the system. We
provide matchmaking lobbies, an extension of the room concept to the game
room, on top of which is provided a framework for managing generic
turn-based games, and various other useful services. Again the philosophy
is to provide consistently designed, but decoupled services that can be
used within and along side whatever design works best for your game.
** Come into my parlor
The Parlor services branch off into all sorts of interesting directions
based on the different kinds of games that are implemented with the
system. We provide matchmaking lobbies, an extension of the room concept
to the game room, on top of which is provided a framework for managing
generic turn-based games, and various other useful services. Again the
philosophy is to provide consistently designed, but decoupled services
that can be used within and along side whatever design works best for your
game.
** Visualized whirled peas
The Whirled services provide support for building online world games that
are composed of myriad scenes between which the user can navigate. It
provides a simple extensible framework for defining your scenes and
dynamically loading them into the server when a user traverses into them.
** Miso
A tile-based isometric rendering engine.
** Media
Various image and sound related services.
** Resource
Services for distributing bundles of resources to clients and making sure
they are up to date.
** Nodemap
Services for displaying maps made up of connected nodes.
+6 -6
View File
@@ -6,11 +6,11 @@ implementation of simple networked games. These may be turn based, puzzle,
party, or other types of games that involve one or more players acting out
a fairly uncomplicated game mechanic.
It builds upon the Cocktail package also provided by the <?> platform. The
Cocktail package is used to provide a basic network environment where
clients can share information with the server and with one another. It
allows the Parlor services to largely concentrate on requirements specific
to implementing simple online games.
It builds upon the Presents and Crowd packages also provided by the Narya
platform. These packages are used to provide a basic network environment
where clients can share information with the server and with one
another. It allows the Parlor services to largely concentrate on
requirements specific to implementing simple online games.
The services provided are divided into the following components:
@@ -40,7 +40,7 @@ This component aims to provide the following services:
** Game state management
Once the game has begun, a means is needed to share the public game state
with the players of the game and to communicate private game state if and
when necessary. This component uses the Cocktail distributed object
when necessary. This component uses the Presents distributed object
services to share information among the players and provide channels of
communication between the game manager and the players.
+19 -19
View File
@@ -1,17 +1,17 @@
Cher Design -*- outline -*-
Presents Design -*- outline -*-
* Why Cher?
The basic function of this layer is to allow the sharing (Cher-ing) of
information among different nodes in the network. Plus, I don't think Cher
has ever had a software system named after her and it's high time. Imagine
Cher as the social lubricant that allows the party goers to communicate.
* Why Presents?
The basic function of this layer is to provide a network presence (as you
can see, we love to pun; don't complain, this package used to be called
Cher) and to allow the sharing of information among different nodes in the
network.
* Overview
The Cher layer implements the distributed object services described in the
Cocktail design document. It does this within the context of an extensible
client/server application framework. Cher provides services that can be
integrated into your distributed application to share information between
a set of clients and entities operating on the server.
The Presents layer implements the distributed object services described in
the Narya design document. It does this within the context of an
extensible client/server application framework. Presents provides services
that can be integrated into your distributed application to share
information between a set of clients and entities operating on the server.
* Authentication and bootstrapping
The client initially transmits an authentication request to the server and
@@ -121,15 +121,15 @@ This function will simply wrap up the arguments and pass them to the
invocation manager for delivery to the appropriate client.
* Server configuration
The Cher server binds a properties file into the configuration name space
under the key "cher". This properties file lives in
rsrc/config/cocktail/cher/server.properties and is loaded from the jar
file in which the Cher server code is provided.
The Presents server binds a properties file into the configuration name
space under the key "presents". This properties file lives in
rsrc/config/presents/server.properties and is loaded from the jar file in
which the Presents server code is provided.
Values specified in this properties file can be overridden by a mechanism
that will be provided by the configuration utilities used by the
server. This is accomplished by placing a properties file earlier in the
classpath than the one supplied with the cher code. The values in that
classpath than the one supplied with the Presents code. The values in that
earlier properties file will override the ones in the standard file.
Values not supplied in the override file will be retrieved from the
standard file.
@@ -138,9 +138,9 @@ Derived server classes should place their server properties into the
classpath with a path along the lines of
rsrc/config/<ident>/server.properties and should bind it into the config
namespace with their own identifier. If they desire to override values in
the Cher server configuration, they should provide a
rsrc/config/cocktail/cher/server.properties in their jar file ensure that
their jar file occurs earlier in the classpath than the Cher server jar
the Presents server configuration, they should provide a
rsrc/config/presents/server.properties in their jar file ensure that their
jar file occurs earlier in the classpath than the Presents server jar
file.
* A note on thread-safety
+1 -1
View File
@@ -1,4 +1,4 @@
Cher Notes -*- outline -*-
Presents Notes -*- outline -*-
* TODO
Pass cause back to client somehow via FailureResponse in Client.requestFailed
+6 -6
View File
@@ -1,12 +1,12 @@
Whirled Design -*- mode: outline -*-
* Overview
Whirled builds on top of the Cocktail platform and provides a framework
for building a virtual world made up of a node network of individual
scenes. In the abstract, scenes contain only exits to other scenes and the
world is one big directed graph. This is not unlike the structure of MUDs
where one classically thinks of rooms and exits. We've chosen the term
scene to avoid implying that we're indoors.
Whirled builds on top of the Presents and Crowd packages and provides a
framework for building a virtual world made up of a node network of
individual scenes. In the abstract, scenes contain only exits to other
scenes and the world is one big directed graph. This is not unlike the
structure of MUDs where one classically thinks of rooms and exits. We've
chosen the term scene to avoid implying that we're indoors.
Whirled provides a means by which clients can move from scene to scene,
and to different locations within the scene (though restricting clients to
+2 -2
View File
@@ -1,7 +1,7 @@
Required external libraries
---------------------------
The cocktail code requires the following external Java libraries (JAR
The Narya code requires the following external Java libraries (JAR
files) to be placed (or symlinked) here in the lib/ directory or in the
shared library directory specified in the build.xml file
(${java.libraries}).
@@ -34,4 +34,4 @@ build system will automatically include them in the compile-time
classpath.
--
$Id: README,v 1.4 2001/07/23 22:25:54 shaper Exp $
$Id: README,v 1.5 2001/10/11 04:07:50 mdb Exp $
+4 -4
View File
@@ -1,10 +1,10 @@
#
# $Id: server.properties,v 1.2 2001/08/04 03:13:26 mdb Exp $
# $Id: server.properties,v 1.3 2001/10/11 04:07:50 mdb Exp $
#
# Configuration for the Party server
# Configuration for the Crowd server
# These invocation service providers will be registered with the
# invocation manager during the server init process
providers = \
location = com.threerings.cocktail.party.server.LocationProvider, \
chat = com.threerings.cocktail.party.chat.ChatProvider
location = com.threerings.crowd.server.LocationProvider, \
chat = com.threerings.crowd.chat.ChatProvider
+2 -2
View File
@@ -1,7 +1,7 @@
#
# $Id: server.properties,v 1.3 2001/08/08 23:56:20 mdb Exp $
# $Id: server.properties,v 1.4 2001/10/11 04:07:50 mdb Exp $
#
# Configuration for the Cher server
# Configuration for the Presents server
# These invocation service providers will be registered with the
# invocation manager during the server init process
+4 -4
View File
@@ -1,16 +1,16 @@
//
// $Id: Log.java,v 1.1 2001/07/20 23:23:50 mdb Exp $
// $Id: Log.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party;
package com.threerings.crowd;
/**
* A placeholder class that contains a reference to the log object used by
* the Party services.
* the Crowd services.
*/
public class Log
{
public static com.samskivert.util.Log log =
new com.samskivert.util.Log("cocktail.party");
new com.samskivert.util.Log("crowd");
/** Convenience function. */
public static void debug (String message)
@@ -1,15 +1,15 @@
//
// $Id: ChatMessageHandler.java,v 1.1 2001/08/03 02:14:41 mdb Exp $
// $Id: ChatMessageHandler.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
import com.threerings.cocktail.cher.dobj.MessageEvent;
import com.threerings.presents.dobj.MessageEvent;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.crowd.server.PlaceManager;
/**
* The chat message handler handles chat messages that are issued on a
@@ -23,7 +23,7 @@ public class ChatMessageHandler implements PlaceManager.MessageHandler
// generate a chat notification with the message and name of the
// speaker
int soid = event.getSourceOid();
BodyObject source = (BodyObject)PartyServer.omgr.getObject(soid);
BodyObject source = (BodyObject)CrowdServer.omgr.getObject(soid);
if (source == null) {
Log.info("Chatter went away. Dropping chat request " +
"[req=" + event + "].");
@@ -39,6 +39,6 @@ public class ChatMessageHandler implements PlaceManager.MessageHandler
Object[] outargs = new Object[] { source.username, message };
MessageEvent nevt = new MessageEvent(
target.getOid(), ChatService.SPEAK_NOTIFICATION, outargs);
PartyServer.omgr.postEvent(nevt);
CrowdServer.omgr.postEvent(nevt);
}
}
@@ -1,17 +1,17 @@
//
// $Id: ChatDirector.java,v 1.9 2001/10/11 03:10:55 mdb Exp $
// $Id: ChatDirector.java,v 1.10 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
import java.util.ArrayList;
import com.threerings.cocktail.cher.client.*;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.client.*;
import com.threerings.presents.dobj.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.client.LocationObserver;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.crowd.Log;
import com.threerings.crowd.client.LocationObserver;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
/**
* The chat director is the client side coordinator of all chat related
@@ -27,7 +27,7 @@ public class ChatDirector
* observer so that it can automatically process place constrained
* chat.
*/
public ChatDirector (PartyContext ctx)
public ChatDirector (CrowdContext ctx)
{
// keep the context around
_ctx = ctx;
@@ -214,7 +214,7 @@ public class ChatDirector
}
}
protected PartyContext _ctx;
protected CrowdContext _ctx;
protected PlaceObject _place;
protected ArrayList _displays = new ArrayList();
@@ -1,7 +1,7 @@
//
// $Id: ChatDisplay.java,v 1.2 2001/10/01 22:14:55 mdb Exp $
// $Id: ChatDisplay.java,v 1.3 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
/**
* A chat display provides a means by which chat messages can be
@@ -1,11 +1,11 @@
//
// $Id: ChatService.java,v 1.5 2001/10/02 02:07:50 mdb Exp $
// $Id: ChatService.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
import com.threerings.cocktail.cher.client.Client;
import com.threerings.cocktail.cher.client.InvocationDirector;
import com.threerings.cocktail.party.Log;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationDirector;
import com.threerings.crowd.Log;
/**
* The chat services provide a mechanism by which the client can broadcast
@@ -1,9 +1,9 @@
//
// $Id: ChatCodes.java,v 1.1 2001/10/01 22:14:55 mdb Exp $
// $Id: ChatCodes.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
import com.threerings.cocktail.cher.client.InvocationCodes;
import com.threerings.presents.client.InvocationCodes;
/**
* Contains codes used by the chat invocation services.
@@ -1,11 +1,11 @@
//
// $Id: ChatProvider.java,v 1.4 2001/10/01 22:14:55 mdb Exp $
// $Id: ChatProvider.java,v 1.5 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.chat;
package com.threerings.crowd.chat;
import com.threerings.cocktail.cher.server.InvocationProvider;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.server.CrowdServer;
/**
* The chat provider handles the server side of the chat-related
@@ -22,7 +22,7 @@ public class ChatProvider
BodyObject source, int invid, String target, String message)
{
// look up the target body object
BodyObject tobj = PartyServer.lookupBody(target);
BodyObject tobj = CrowdServer.lookupBody(target);
if (tobj == null) {
sendResponse(source, invid, TELL_FAILED_RESPONSE,
USER_NOT_ONLINE);
@@ -30,7 +30,7 @@ public class ChatProvider
// deliver a tell notification to the target player
Object[] args = new Object[] { source.username, message };
PartyServer.invmgr.sendNotification(
CrowdServer.invmgr.sendNotification(
tobj.getOid(), MODULE_NAME, TELL_NOTIFICATION, args);
sendResponse(source, invid, TELL_SUCCEEDED_RESPONSE);
@@ -1,9 +1,9 @@
//
// $Id: LocationAdapter.java,v 1.1 2001/08/22 00:08:12 mdb Exp $
// $Id: LocationAdapter.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.data.PlaceObject;
/**
* The location adapter makes life easier for a class that really only
@@ -1,9 +1,9 @@
//
// $Id: LocationCodes.java,v 1.1 2001/10/01 22:14:55 mdb Exp $
// $Id: LocationCodes.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.cher.client.InvocationCodes;
import com.threerings.presents.client.InvocationCodes;
/**
* Contains codes used by the location invocation services.
@@ -1,17 +1,17 @@
//
// $Id: LocationDirector.java,v 1.10 2001/10/05 23:57:26 mdb Exp $
// $Id: LocationDirector.java,v 1.11 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import java.util.ArrayList;
import java.util.List;
import com.threerings.cocktail.cher.client.*;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.client.*;
import com.threerings.presents.dobj.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.*;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.*;
import com.threerings.crowd.util.CrowdContext;
/**
* The location director provides a means by which entities on the client
@@ -23,7 +23,7 @@ import com.threerings.cocktail.party.util.PartyContext;
public class LocationDirector
implements ClientObserver, Subscriber
{
public LocationDirector (PartyContext ctx)
public LocationDirector (CrowdContext ctx)
{
// keep this around for later
_ctx = ctx;
@@ -341,7 +341,7 @@ public class LocationDirector
}
/** The context through which we access needed services. */
protected PartyContext _ctx;
protected CrowdContext _ctx;
/** Our location observer list. */
protected List _observers = new ArrayList();
@@ -1,9 +1,9 @@
//
// $Id: LocationObserver.java,v 1.3 2001/08/02 04:59:54 mdb Exp $
// $Id: LocationObserver.java,v 1.4 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.data.PlaceObject;
/**
* The location observer interface makes it possible for entities to be
@@ -1,11 +1,11 @@
//
// $Id: LocationService.java,v 1.3 2001/10/02 02:07:50 mdb Exp $
// $Id: LocationService.java,v 1.4 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.cher.client.Client;
import com.threerings.cocktail.cher.client.InvocationDirector;
import com.threerings.cocktail.party.Log;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationDirector;
import com.threerings.crowd.Log;
/**
* The location services provide a mechanism by which the client can
@@ -1,18 +1,18 @@
//
// $Id: OccupantManager.java,v 1.5 2001/10/02 02:07:50 mdb Exp $
// $Id: OccupantManager.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import java.util.ArrayList;
import java.util.Iterator;
import com.samskivert.util.HashIntMap;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.dobj.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.OccupantInfo;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.OccupantInfo;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
/**
* The occupant manager listens for occupants of places to enter and exit,
@@ -41,7 +41,7 @@ public class OccupantManager
/**
* Constructs a new occupant manager with the supplied context.
*/
public OccupantManager (PartyContext ctx)
public OccupantManager (CrowdContext ctx)
{
// register ourselves as a location observer
ctx.getLocationDirector().addLocationObserver(this);
@@ -1,9 +1,9 @@
//
// $Id: OccupantObserver.java,v 1.1 2001/08/20 20:54:56 mdb Exp $
// $Id: OccupantObserver.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.party.data.OccupantInfo;
import com.threerings.crowd.data.OccupantInfo;
/**
* An entity that is interested in hearing about bodies that enter and
@@ -1,14 +1,14 @@
//
// $Id: PlaceController.java,v 1.3 2001/10/09 17:20:03 mdb Exp $
// $Id: PlaceController.java,v 1.4 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import java.awt.event.ActionEvent;
import com.samskivert.swing.Controller;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
/**
* Controls the user interface that is used to display a place. When the
@@ -32,7 +32,7 @@ public abstract class PlaceController
* @param ctx the client context.
* @param config the place configuration for this place.
*/
public void init (PartyContext ctx, PlaceConfig config)
public void init (CrowdContext ctx, PlaceConfig config)
{
// keep these around
_ctx = ctx;
@@ -92,7 +92,7 @@ public abstract class PlaceController
}
/** A reference to the active client context. */
protected PartyContext _ctx;
protected CrowdContext _ctx;
/** A reference to our place configuration. */
protected PlaceConfig _config;
@@ -1,9 +1,9 @@
//
// $Id: PlaceView.java,v 1.4 2001/10/06 00:24:46 mdb Exp $
// $Id: PlaceView.java,v 1.5 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.data.PlaceObject;
/**
* This interface provides a convenient means for decoupling user
@@ -35,7 +35,7 @@ import com.threerings.cocktail.party.data.PlaceObject;
* of place entering and exiting by virtue of the single dispatching
* calls. It is useful to note that place-sensitive user interface
* elements will also generally need a reference to the {@link
* com.threerings.cocktail.party.util.PartyContext} derivative in use by
* com.threerings.crowd.util.CrowdContext} derivative in use by
* the client, but those are best supplied at construct time.
*/
public interface PlaceView
@@ -1,12 +1,12 @@
//
// $Id: PlaceViewUtil.java,v 1.2 2001/10/05 23:57:26 mdb Exp $
// $Id: PlaceViewUtil.java,v 1.3 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.client;
package com.threerings.crowd.client;
import java.awt.Container;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.PlaceObject;
/**
* Provides a mechanism for dispatching notifications to all user
@@ -1,9 +1,9 @@
//
// $Id: BodyObject.dobj,v 1.4 2001/08/21 19:37:21 mdb Exp $
// $Id: BodyObject.dobj,v 1.5 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.data;
package com.threerings.crowd.data;
import com.threerings.cocktail.cher.data.ClientObject;
import com.threerings.presents.data.ClientObject;
public class BodyObject extends ClientObject
{
@@ -1,25 +1,25 @@
//
// $Id: OccupantInfo.java,v 1.2 2001/08/20 20:54:57 mdb Exp $
// $Id: OccupantInfo.java,v 1.3 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.data;
package com.threerings.crowd.data;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import com.threerings.cocktail.cher.dobj.DSet;
import com.threerings.presents.dobj.DSet;
/**
* The occupant info object contains all of the information about an
* occupant of a place that should be shared with other occupants of the
* place. These objects are stored in the place object itself and are
* updated when bodies enter and exit a place. A system that builds upon
* the Party framework can extend this class to include extra information
* the Crowd framework can extend this class to include extra information
* about their occupants. They will need to be sure to return the proper
* class from {@link
* com.threerings.cocktail.party.server.PlaceManager#getOccupantInfoClass}
* com.threerings.crowd.server.PlaceManager#getOccupantInfoClass}
* and populate their occupant info in {@link
* com.threerings.cocktail.party.server.PlaceManager#populateOccupantInfo}.
* com.threerings.crowd.server.PlaceManager#populateOccupantInfo}.
*/
public class OccupantInfo implements DSet.Element
{
@@ -1,13 +1,13 @@
//
// $Id: PlaceConfig.java,v 1.1 2001/10/05 23:57:26 mdb Exp $
// $Id: PlaceConfig.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.data;
package com.threerings.crowd.data;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import com.threerings.cocktail.cher.io.Streamable;
import com.threerings.presents.io.Streamable;
/**
* The place config class encapsulates the configuration information for a
@@ -36,14 +36,14 @@ public abstract class PlaceConfig implements Streamable
/**
* Returns the class that should be used to create a controller for
* this place. The controller class must derive from {@link
* com.threerings.cocktail.party.client.PlaceController}.
* com.threerings.crowd.client.PlaceController}.
*/
public abstract Class getControllerClass ();
/**
* Returns the name of the class that should be used to create a
* manager for this place. The manager class must derive from {@link
* com.threerings.cocktail.party.server.PlaceManager}. <em>Note:</em>
* com.threerings.crowd.server.PlaceManager}. <em>Note:</em>
* this method differs from {@link #getControllerClass} because we
* want to avoid compile time linkage of the place config object
* (which is used on the client) to server code. This allows a code
@@ -1,9 +1,9 @@
//
// $Id: PlaceObject.dobj,v 1.5 2001/08/16 04:28:36 mdb Exp $
// $Id: PlaceObject.dobj,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.data;
package com.threerings.crowd.data;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.dobj.*;
public class PlaceObject extends DObject
{
@@ -1,16 +1,16 @@
//
// $Id: CrowdClient.java,v 1.2 2001/08/04 01:55:41 mdb Exp $
// $Id: CrowdClient.java,v 1.3 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.server;
package com.threerings.crowd.server;
import com.threerings.cocktail.cher.server.CherClient;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.data.BodyObject;
/**
* The party client extends the cher client and does some initializations
* necessary for the party services.
* The crowd client extends the presents client and does some
* initializations necessary for the crowd services.
*/
public class PartyClient extends CherClient
public class CrowdClient extends PresentsClient
{
protected void sessionWillStart ()
{
@@ -23,7 +23,7 @@ public class PartyClient extends CherClient
_bodobj.setUsername(_username);
// register our body object mapping
PartyServer.mapBody(_username, _bodobj);
CrowdServer.mapBody(_username, _bodobj);
}
protected void sessionWillResume ()
@@ -38,7 +38,7 @@ public class PartyClient extends CherClient
super.sessionDidTerminate();
// unregister our body object mapping
PartyServer.unmapBody(_username);
CrowdServer.unmapBody(_username);
}
protected BodyObject _bodobj;
@@ -1,23 +1,23 @@
//
// $Id: CrowdServer.java,v 1.7 2001/09/28 22:32:28 mdb Exp $
// $Id: CrowdServer.java,v 1.8 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.server;
package com.threerings.crowd.server;
import java.util.HashMap;
import com.threerings.cocktail.cher.server.CherServer;
import com.threerings.presents.server.PresentsServer;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.BodyObject;
/**
* The party server extends the cher server by configuring it to use the
* extensions provided by the party layer to support party services.
* The crowd server extends the presents server by configuring it to use the
* extensions provided by the crowd layer to support crowd services.
*/
public class PartyServer extends CherServer
public class CrowdServer extends PresentsServer
{
/** The namespace used for server config properties. */
public static final String CONFIG_KEY = "party";
public static final String CONFIG_KEY = "crowd";
/** The place registry. */
public static PlaceRegistry plreg;
@@ -28,14 +28,14 @@ public class PartyServer extends CherServer
public void init ()
throws Exception
{
// do the cher server initialization
// do the presents server initialization
super.init();
// bind the party server config into the namespace
// bind the crowd server config into the namespace
config.bindProperties(CONFIG_KEY, CONFIG_PATH, true);
// configure the client to use our party client
clmgr.setClientClass(PartyClient.class);
// configure the client to use our crowd client
clmgr.setClientClass(CrowdClient.class);
// configure the client to use the body object
clmgr.setClientObjectClass(BodyObject.class);
@@ -46,11 +46,11 @@ public class PartyServer extends CherServer
// register our invocation service providers
registerProviders(config.getValue(PROVIDERS_KEY, (String[])null));
Log.info("Party server initialized.");
Log.info("Crowd server initialized.");
}
/**
* The party server maintains a mapping of username to body object for
* The crowd server maintains a mapping of username to body object for
* all active users on the server. This should only be called from the
* dobjmgr thread.
*/
@@ -60,7 +60,7 @@ public class PartyServer extends CherServer
}
/**
* Called by the party client to map a username to a particular body
* Called by the crowd client to map a username to a particular body
* object. This should only be called from the dobjmgr thread.
*/
protected static void mapBody (String username, BodyObject bodobj)
@@ -69,7 +69,7 @@ public class PartyServer extends CherServer
}
/**
* Called by the party client to unmap a username from a particular
* Called by the crowd client to unmap a username from a particular
* body object. This should only be called from the dobjmgr thread.
*/
protected static void unmapBody (String username)
@@ -79,7 +79,7 @@ public class PartyServer extends CherServer
public static void main (String[] args)
{
PartyServer server = new PartyServer();
CrowdServer server = new CrowdServer();
try {
server.init();
server.run();
@@ -94,7 +94,7 @@ public class PartyServer extends CherServer
// the path to the config file
protected final static String CONFIG_PATH =
"rsrc/config/cocktail/party/server";
"rsrc/config/crowd/server";
// the config key for our list of invocation provider mappings
protected final static String PROVIDERS_KEY = CONFIG_KEY + ".providers";
@@ -1,16 +1,16 @@
//
// $Id: LocationProvider.java,v 1.9 2001/10/05 23:57:26 mdb Exp $
// $Id: LocationProvider.java,v 1.10 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.server;
package com.threerings.crowd.server;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.cocktail.cher.server.InvocationProvider;
import com.threerings.cocktail.cher.server.ServiceFailedException;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.presents.server.ServiceFailedException;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.client.LocationCodes;
import com.threerings.cocktail.party.data.*;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.crowd.Log;
import com.threerings.crowd.client.LocationCodes;
import com.threerings.crowd.data.*;
import com.threerings.crowd.server.CrowdServer;
/**
* This class provides the server end of the location services.
@@ -52,7 +52,7 @@ public class LocationProvider
int bodoid = source.getOid();
// make sure the place in question actually exists
PlaceManager pmgr = PartyServer.plreg.getPlaceManager(placeId);
PlaceManager pmgr = CrowdServer.plreg.getPlaceManager(placeId);
if (pmgr == null) {
Log.info("Requested to move to non-existent place " +
"[source=" + source + ", place=" + placeId + "].");
@@ -78,7 +78,7 @@ public class LocationProvider
// remove them from the occupant list of the previous location
try {
PlaceObject pold = (PlaceObject)
PartyServer.omgr.getObject(source.location);
CrowdServer.omgr.getObject(source.location);
if (pold != null) {
Object key = new Integer(bodoid);
// remove their occupant info (which is keyed on oid)
@@ -1,15 +1,15 @@
//
// $Id: PlaceManager.java,v 1.16 2001/10/09 18:41:01 mdb Exp $
// $Id: PlaceManager.java,v 1.17 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.server;
package com.threerings.crowd.server;
import java.util.HashMap;
import java.util.Properties;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.dobj.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.*;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.*;
/**
* The place manager is the server-side entity that handles all
@@ -18,7 +18,7 @@ import com.threerings.cocktail.party.data.*;
* places) should live in the place manager. An intelligently constructed
* hierarchy of place manager classes working in concert with invocation
* services should provide the majority of the server-side functionality
* of an application built on the Cocktail platform.
* of an application built on the Presents platform.
*
* <p> The base place manager class takes care of the necessary
* interactions with the place registry to manage place registration. It
@@ -1,7 +1,7 @@
//
// $Id: PlaceRegistry.java,v 1.10 2001/10/05 23:57:26 mdb Exp $
// $Id: PlaceRegistry.java,v 1.11 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.server;
package com.threerings.crowd.server;
import java.util.Iterator;
@@ -9,11 +9,11 @@ import com.samskivert.util.Config;
import com.samskivert.util.HashIntMap;
import com.samskivert.util.Queue;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.presents.dobj.*;
import com.threerings.cocktail.party.Log;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.crowd.data.PlaceObject;
/**
* The place registry keeps track of all of the active places in the
@@ -65,7 +65,7 @@ public class PlaceRegistry implements Subscriber
_createq.append(pmgr);
// and request to create the place object
PartyServer.omgr.createObject(
CrowdServer.omgr.createObject(
pmgr.getPlaceObjectClass(), this, false);
return pmgr;
@@ -1,18 +1,18 @@
//
// $Id: CrowdContext.java,v 1.5 2001/10/09 17:20:03 mdb Exp $
// $Id: CrowdContext.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.cocktail.party.util;
package com.threerings.crowd.util;
import com.threerings.cocktail.cher.util.CherContext;
import com.threerings.cocktail.party.client.LocationDirector;
import com.threerings.cocktail.party.client.OccupantManager;
import com.threerings.cocktail.party.client.PlaceView;
import com.threerings.presents.util.PresentsContext;
import com.threerings.crowd.client.LocationDirector;
import com.threerings.crowd.client.OccupantManager;
import com.threerings.crowd.client.PlaceView;
/**
* The party context provides access to the various managers, etc. that
* are needed by the party client code.
* The crowd context provides access to the various managers, etc. that
* are needed by the crowd client code.
*/
public interface PartyContext extends CherContext
public interface CrowdContext extends PresentsContext
{
/**
* Returns a reference to the location director.
@@ -1,9 +1,9 @@
//
// $Id: ParlorCodes.java,v 1.4 2001/10/04 22:47:49 mdb Exp $
// $Id: ParlorCodes.java,v 1.5 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.client;
import com.threerings.cocktail.cher.client.InvocationCodes;
import com.threerings.presents.client.InvocationCodes;
/**
* Contains codes used by the parlor invocation services.
@@ -1,5 +1,5 @@
//
// $Id: ParlorDirector.java,v 1.9 2001/10/09 20:20:52 mdb Exp $
// $Id: ParlorDirector.java,v 1.10 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.client;
@@ -7,7 +7,7 @@ import java.util.ArrayList;
import java.util.Iterator;
import com.samskivert.util.HashIntMap;
import com.threerings.cocktail.cher.client.InvocationReceiver;
import com.threerings.presents.client.InvocationReceiver;
import com.threerings.parlor.Log;
import com.threerings.parlor.data.GameConfig;
@@ -1,10 +1,10 @@
//
// $Id: ParlorService.java,v 1.5 2001/10/02 02:09:06 mdb Exp $
// $Id: ParlorService.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.client;
import com.threerings.cocktail.cher.client.Client;
import com.threerings.cocktail.cher.client.InvocationDirector;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationDirector;
import com.threerings.parlor.Log;
import com.threerings.parlor.data.GameConfig;
@@ -1,9 +1,9 @@
//
// $Id: GameCodes.java,v 1.1 2001/10/11 03:12:38 mdb Exp $
// $Id: GameCodes.java,v 1.2 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.client;
import com.threerings.cocktail.cher.client.InvocationCodes;
import com.threerings.presents.client.InvocationCodes;
/**
* Contains codes used by the game services.
@@ -1,5 +1,5 @@
//
// $Id: GameConfig.java,v 1.5 2001/10/06 00:25:29 mdb Exp $
// $Id: GameConfig.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.data;
@@ -7,7 +7,7 @@ import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.crowd.data.PlaceConfig;
/**
* The game config class encapsulates the configuration information for a
@@ -1,5 +1,5 @@
//
// $Id: GameController.java,v 1.5 2001/10/11 03:12:38 mdb Exp $
// $Id: GameController.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.client;
@@ -7,11 +7,11 @@ import java.awt.event.ActionEvent;
import com.samskivert.swing.Controller;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.cocktail.party.client.PlaceController;
import com.threerings.cocktail.party.data.PlaceConfig;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.presents.dobj.*;
import com.threerings.crowd.client.PlaceController;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.parlor.Log;
import com.threerings.parlor.data.GameConfig;
@@ -42,7 +42,7 @@ public abstract class GameController
* @param config the configuration of the game we are intended to
* control.
*/
public void init (PartyContext ctx, PlaceConfig config)
public void init (CrowdContext ctx, PlaceConfig config)
{
// cast our references before we call super.init() so that when
// super.init() calls createPlaceView(), we have our casted
@@ -1,15 +1,15 @@
//
// $Id: GameManager.java,v 1.6 2001/10/11 03:12:38 mdb Exp $
// $Id: GameManager.java,v 1.7 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.server;
import com.threerings.cocktail.cher.dobj.MessageEvent;
import com.threerings.presents.dobj.MessageEvent;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.server.PlaceManager;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.parlor.Log;
import com.threerings.parlor.client.GameCodes;
@@ -77,9 +77,9 @@ public class GameManager
Object[] args = new Object[] {
new Integer(_gameobj.getOid()) };
for (int i = 0; i < _players.length; i++) {
BodyObject bobj = PartyServer.lookupBody(_players[i]);
BodyObject bobj = CrowdServer.lookupBody(_players[i]);
// deliver a game ready notification to the player
PartyServer.invmgr.sendNotification(
CrowdServer.invmgr.sendNotification(
bobj.getOid(), MODULE_NAME, GAME_READY_NOTIFICATION, args);
}
}
@@ -169,7 +169,7 @@ public class GameManager
{
int cloid = event.getSourceOid();
BodyObject body = (BodyObject)
PartyServer.omgr.getObject(cloid);
CrowdServer.omgr.getObject(cloid);
if (body == null) {
Log.warning("Player sent am ready notification and then " +
"disappeared [event=" + event + "].");
@@ -1,9 +1,9 @@
//
// $Id: GameObject.dobj,v 1.2 2001/10/01 06:19:15 mdb Exp $
// $Id: GameObject.dobj,v 1.3 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.data;
import com.threerings.cocktail.party.data.PlaceObject;
import com.threerings.crowd.data.PlaceObject;
/**
* A game object hosts the shared data associated with a game played by
@@ -1,16 +1,16 @@
//
// $Id: ParlorManager.java,v 1.7 2001/10/09 20:20:35 mdb Exp $
// $Id: ParlorManager.java,v 1.8 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.server;
import com.samskivert.util.Config;
import com.samskivert.util.HashIntMap;
import com.threerings.cocktail.cher.server.InvocationManager;
import com.threerings.cocktail.cher.server.ServiceFailedException;
import com.threerings.presents.server.InvocationManager;
import com.threerings.presents.server.ServiceFailedException;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.parlor.Log;
import com.threerings.parlor.client.ParlorCodes;
@@ -176,7 +176,7 @@ public class ParlorManager
// started up (which is done by the place registry once the
// game object creation has completed)
GameManager gmgr = (GameManager)
PartyServer.plreg.createPlace(invite.config);
CrowdServer.plreg.createPlace(invite.config);
// provide the game manager with some initialization info
String[] players = new String[] {
@@ -1,12 +1,12 @@
//
// $Id: ParlorProvider.java,v 1.5 2001/10/03 03:44:52 mdb Exp $
// $Id: ParlorProvider.java,v 1.6 2001/10/11 04:07:51 mdb Exp $
package com.threerings.parlor.server;
import com.threerings.cocktail.cher.server.InvocationProvider;
import com.threerings.cocktail.cher.server.ServiceFailedException;
import com.threerings.cocktail.party.data.BodyObject;
import com.threerings.cocktail.party.server.PartyServer;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.presents.server.ServiceFailedException;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.parlor.Log;
import com.threerings.parlor.client.ParlorCodes;
@@ -49,7 +49,7 @@ public class ParlorProvider
// ensure that the invitee is online at present
try {
BodyObject target = PartyServer.lookupBody(invitee);
BodyObject target = CrowdServer.lookupBody(invitee);
if (target == null) {
throw new ServiceFailedException(INVITEE_NOT_ONLINE);
}
@@ -1,16 +1,16 @@
//
// $Id: ParlorContext.java,v 1.1 2001/10/01 02:56:35 mdb Exp $
// $Id: ParlorContext.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.parlor.util;
import com.threerings.cocktail.party.util.PartyContext;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.parlor.client.ParlorDirector;
/**
* The parlor context provides access to the various managers, etc. that
* are needed by the parlor client code.
*/
public interface ParlorContext extends PartyContext
public interface ParlorContext extends CrowdContext
{
/**
* Returns a reference to the parlor director.
+4 -4
View File
@@ -1,16 +1,16 @@
//
// $Id: Log.java,v 1.4 2001/07/20 23:23:50 mdb Exp $
// $Id: Log.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher;
package com.threerings.presents;
/**
* A placeholder class that contains a reference to the log object used by
* the Cher services.
* the Presents services.
*/
public class Log
{
public static com.samskivert.util.Log log =
new com.samskivert.util.Log("cocktail.cher");
new com.samskivert.util.Log("presents");
/** Convenience function. */
public static void debug (String message)
@@ -1,16 +1,16 @@
//
// $Id: Client.java,v 1.16 2001/10/09 18:17:33 mdb Exp $
// $Id: Client.java,v 1.17 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
import java.util.ArrayList;
import java.util.List;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.data.ClientObject;
import com.threerings.cocktail.cher.dobj.DObjectManager;
import com.threerings.cocktail.cher.net.BootstrapData;
import com.threerings.cocktail.cher.net.Credentials;
import com.threerings.presents.Log;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.net.BootstrapData;
import com.threerings.presents.net.Credentials;
/**
* Through the client object, a connection to the system is established
@@ -1,7 +1,7 @@
//
// $Id: ClientAdapter.java,v 1.2 2001/09/13 19:08:21 mdb Exp $
// $Id: ClientAdapter.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
/**
* The client adapter makes life easier for client observer classes that
@@ -1,15 +1,15 @@
//
// $Id: ClientDObjectMgr.java,v 1.6 2001/09/17 05:18:20 mdb Exp $
// $Id: ClientDObjectMgr.java,v 1.7 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
import java.util.ArrayList;
import com.samskivert.util.HashIntMap;
import com.samskivert.util.Queue;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.cocktail.cher.net.*;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.*;
import com.threerings.presents.net.*;
/**
* The client distributed object manager manages a set of proxy objects
@@ -1,7 +1,7 @@
//
// $Id: ClientObserver.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
// $Id: ClientObserver.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
/**
* A client observer is registered with the client instance to be notified
@@ -1,7 +1,7 @@
//
// $Id: Communicator.java,v 1.15 2001/10/03 03:39:39 mdb Exp $
// $Id: Communicator.java,v 1.16 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
import java.io.*;
import java.net.Socket;
@@ -10,11 +10,11 @@ import java.net.InetAddress;
import com.samskivert.util.LoopingThread;
import com.samskivert.util.Queue;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.DObjectManager;
import com.threerings.cocktail.cher.io.*;
import com.threerings.cocktail.cher.io.ObjectStreamException;
import com.threerings.cocktail.cher.net.*;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.io.*;
import com.threerings.presents.io.ObjectStreamException;
import com.threerings.presents.net.*;
/**
* The client performs all network I/O on separate threads (one for
@@ -1,7 +1,7 @@
//
// $Id: InvocationCodes.java,v 1.1 2001/10/01 22:14:54 mdb Exp $
// $Id: InvocationCodes.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
/**
* The invocation codes interface provides codes that are commonly used by
@@ -1,7 +1,7 @@
//
// $Id: InvocationDirector.java,v 1.12 2001/10/04 20:02:13 mdb Exp $
// $Id: InvocationDirector.java,v 1.13 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
import java.lang.reflect.Method;
import java.util.HashMap;
@@ -9,10 +9,10 @@ import java.util.HashMap;
import com.samskivert.util.HashIntMap;
import com.samskivert.util.StringUtil;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.data.*;
import com.threerings.cocktail.cher.dobj.*;
import com.threerings.cocktail.cher.util.ClassUtil;
import com.threerings.presents.Log;
import com.threerings.presents.data.*;
import com.threerings.presents.dobj.*;
import com.threerings.presents.util.ClassUtil;
/**
* The invocation services provide client to server invocations (service
@@ -1,7 +1,7 @@
//
// $Id: InvocationReceiver.java,v 1.3 2001/10/02 02:05:50 mdb Exp $
// $Id: InvocationReceiver.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
/**
* Classes registered to process invocation notifications should implement
@@ -1,7 +1,7 @@
//
// $Id: LogonException.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
// $Id: LogonException.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.client;
package com.threerings.presents.client;
/**
* A logon exception is used to indicate a failure to log on to the
@@ -1,9 +1,9 @@
//
// $Id: ClientObject.java,v 1.1 2001/07/19 05:56:20 mdb Exp $
// $Id: ClientObject.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.data;
package com.threerings.presents.data;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
/**
* Every client in the system has an associated client object to which
@@ -1,9 +1,9 @@
//
// $Id: InvocationObject.java,v 1.2 2001/07/19 19:18:06 mdb Exp $
// $Id: InvocationObject.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.data;
package com.threerings.presents.data;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
/**
* A single invocation object is created by the server invocation manager
@@ -1,14 +1,14 @@
//
// $Id: AttributeChangedEvent.java,v 1.8 2001/08/04 00:32:11 mdb Exp $
// $Id: AttributeChangedEvent.java,v 1.9 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import com.threerings.cocktail.cher.dobj.io.ValueMarshaller;
import com.threerings.presents.dobj.io.ValueMarshaller;
/**
* An attribute changed event is dispatched when a single attribute of a
@@ -1,14 +1,14 @@
//
// $Id: AttributesChangedEvent.java,v 1.7 2001/08/04 00:32:11 mdb Exp $
// $Id: AttributesChangedEvent.java,v 1.8 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.samskivert.util.StringUtil;
import com.threerings.cocktail.cher.dobj.io.ValueMarshaller;
import com.threerings.presents.dobj.io.ValueMarshaller;
/**
* An attribute<em>s</em> changed event is dispatched when multiple
@@ -1,7 +1,7 @@
//
// $Id: DEvent.java,v 1.5 2001/08/04 00:32:11 mdb Exp $
// $Id: DEvent.java,v 1.6 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
/**
* A distributed object event is dispatched whenever any modification is
@@ -1,7 +1,7 @@
//
// $Id: DEventUtil.java,v 1.2 2001/06/01 20:35:39 mdb Exp $
// $Id: DEventUtil.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.lang.reflect.Method;
import java.util.HashMap;
@@ -1,16 +1,16 @@
//
// $Id: DObject.java,v 1.26 2001/08/21 19:35:02 mdb Exp $
// $Id: DObject.java,v 1.27 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.lang.reflect.Field;
import java.util.ArrayList;
import com.samskivert.util.ListUtil;
import com.threerings.cocktail.cher.Log;
import com.threerings.presents.Log;
/**
* The distributed object forms the foundation of the cocktail system. All
* The distributed object forms the foundation of the Presents system. All
* information shared among users of the system is done via distributed
* objects. A distributed object has a set of subscribers. These
* subscribers have access to the object or a proxy of the object and
@@ -1,7 +1,7 @@
//
// $Id: DObjectManager.java,v 1.8 2001/08/07 20:38:58 mdb Exp $
// $Id: DObjectManager.java,v 1.9 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
/**
* The distributed object manager is responsible for managing the creation
@@ -1,15 +1,15 @@
//
// $Id: DSet.java,v 1.7 2001/10/02 02:05:50 mdb Exp $
// $Id: DSet.java,v 1.8 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Iterator;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.io.Streamable;
import com.threerings.presents.Log;
import com.threerings.presents.io.Streamable;
/**
* The distributed set class provides a means by which an unordered set of
@@ -27,7 +27,7 @@ import com.threerings.cocktail.cher.io.Streamable;
* sent over the wire.
*
* <p> Classes that wish to act as set elements must implement the {@link
* com.threerings.cocktail.cher.dobj.DSet.Element} interface which extends
* com.threerings.presents.dobj.DSet.Element} interface which extends
* {@link Streamable} and adds the requirement that the object provide a
* key which will be used to identify element equality. Thus an element is
* declared to be in a set of the object returned by that element's
@@ -1,14 +1,14 @@
//
// $Id: EntryAddedEvent.java,v 1.3 2001/08/16 03:45:43 mdb Exp $
// $Id: EntryAddedEvent.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.io.ElementUtil;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.io.ElementUtil;
/**
* An element added event is dispatched when an element is added to a
@@ -1,13 +1,13 @@
//
// $Id: EntryRemovedEvent.java,v 1.4 2001/08/21 19:33:38 mdb Exp $
// $Id: EntryRemovedEvent.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.threerings.cocktail.cher.dobj.io.ValueMarshaller;
import com.threerings.presents.dobj.io.ValueMarshaller;
/**
* An element removed event is dispatched when an element is removed from
@@ -1,14 +1,14 @@
//
// $Id: EntryUpdatedEvent.java,v 1.1 2001/08/16 03:45:43 mdb Exp $
// $Id: EntryUpdatedEvent.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.io.ElementUtil;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.io.ElementUtil;
/**
* An element updated event is dispatched when an element of a
@@ -1,7 +1,7 @@
//
// $Id: MessageEvent.java,v 1.5 2001/08/11 00:05:58 mdb Exp $
// $Id: MessageEvent.java,v 1.6 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -9,7 +9,7 @@ import java.io.IOException;
import java.lang.reflect.Method;
import com.samskivert.util.StringUtil;
import com.threerings.cocktail.cher.dobj.io.ValueMarshaller;
import com.threerings.presents.dobj.io.ValueMarshaller;
/**
* A message event is used to dispatch a message to all subscribers of a
@@ -1,7 +1,7 @@
//
// $Id: NoSuchObjectException.java,v 1.1 2001/06/01 05:01:52 mdb Exp $
// $Id: NoSuchObjectException.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
/**
* A no such object exception is delivered when a subscriber requests
@@ -1,7 +1,7 @@
//
// $Id: ObjectAccessException.java,v 1.1 2001/06/01 05:01:52 mdb Exp $
// $Id: ObjectAccessException.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
/**
* An object access exception is delivered when an object is not
@@ -1,7 +1,7 @@
//
// $Id: ObjectAddedEvent.java,v 1.4 2001/08/04 00:32:11 mdb Exp $
// $Id: ObjectAddedEvent.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -1,7 +1,7 @@
//
// $Id: ObjectDestroyedEvent.java,v 1.1 2001/08/07 20:38:58 mdb Exp $
// $Id: ObjectDestroyedEvent.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -1,7 +1,7 @@
//
// $Id: ObjectRemovedEvent.java,v 1.4 2001/08/04 00:32:11 mdb Exp $
// $Id: ObjectRemovedEvent.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -1,7 +1,7 @@
//
// $Id: OidList.java,v 1.3 2001/08/04 01:04:49 mdb Exp $
// $Id: OidList.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -1,14 +1,14 @@
//
// $Id: ReleaseLockEvent.java,v 1.3 2001/08/04 01:05:12 mdb Exp $
// $Id: ReleaseLockEvent.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import com.threerings.cocktail.cher.dobj.io.ValueMarshaller;
import com.threerings.presents.dobj.io.ValueMarshaller;
/**
* A release lock event is dispatched at the end of a chain of events to
@@ -1,7 +1,7 @@
//
// $Id: Subscriber.java,v 1.5 2001/08/02 04:49:08 mdb Exp $
// $Id: Subscriber.java,v 1.6 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
/**
* A subscriber is an entity that has access to a distributed object. The
@@ -1,13 +1,13 @@
//
// $Id: TypedEvent.java,v 1.1 2001/06/11 17:44:04 mdb Exp $
// $Id: TypedEvent.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj;
package com.threerings.presents.dobj;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import com.threerings.cocktail.cher.io.TypedObject;
import com.threerings.presents.io.TypedObject;
/**
* A typed event is one that can be transmitted over the network. All
@@ -1,16 +1,16 @@
//
// $Id: DObjectFactory.java,v 1.7 2001/08/07 20:38:58 mdb Exp $
// $Id: DObjectFactory.java,v 1.8 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.util.HashMap;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.cocktail.cher.io.ObjectStreamException;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.io.ObjectStreamException;
/**
* The distributed object factory is responsible for marshalling and
@@ -1,11 +1,11 @@
//
// $Id: EntryUtil.java,v 1.2 2001/08/21 21:16:53 mdb Exp $
// $Id: EntryUtil.java,v 1.3 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.*;
import com.threerings.cocktail.cher.dobj.DSet;
import com.threerings.presents.dobj.DSet;
/**
* Routines to simplify the process of moving set elements over the wire.
@@ -1,14 +1,14 @@
//
// $Id: BooleanFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: BooleanFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class BooleanFieldMarshaller implements FieldMarshaller
{
@@ -1,15 +1,15 @@
//
// $Id: DSetFieldMarshaller.java,v 1.1 2001/08/20 21:44:10 mdb Exp $
// $Id: DSetFieldMarshaller.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.cocktail.cher.dobj.DSet;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DSet;
public class DSetFieldMarshaller implements FieldMarshaller
{
@@ -1,14 +1,14 @@
//
// $Id: DoubleFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: DoubleFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class DoubleFieldMarshaller implements FieldMarshaller
{
@@ -1,14 +1,14 @@
//
// $Id: FieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: FieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
/**
* A field marshaller knows how to marshall and unmarshall a particular
@@ -1,11 +1,11 @@
//
// $Id: FieldMarshallerRegistry.java,v 1.5 2001/08/20 21:44:10 mdb Exp $
// $Id: FieldMarshallerRegistry.java,v 1.6 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.lang.reflect.Field;
import java.util.Hashtable;
import com.threerings.cocktail.cher.Log;
import com.threerings.presents.Log;
/**
* Field marshaller instances are registered for each type of field that
@@ -1,14 +1,14 @@
//
// $Id: FloatFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: FloatFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class FloatFieldMarshaller implements FieldMarshaller
{
@@ -1,7 +1,7 @@
//
// $Id: FramedInputStream.java,v 1.6 2001/08/21 23:26:21 mdb Exp $
// $Id: FramedInputStream.java,v 1.7 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
import java.io.EOFException;
import java.io.IOException;
@@ -9,7 +9,7 @@ import java.io.InputStream;
import com.samskivert.util.StringUtil;
import com.threerings.cocktail.cher.Log;
import com.threerings.presents.Log;
/**
* The framed input stream reads input that was framed by a framing output
@@ -1,7 +1,7 @@
//
// $Id: FramingOutputStream.java,v 1.3 2001/05/30 23:58:31 mdb Exp $
// $Id: FramingOutputStream.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -1,14 +1,14 @@
//
// $Id: IntFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: IntFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class IntFieldMarshaller implements FieldMarshaller
{
@@ -1,14 +1,14 @@
//
// $Id: LongFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: LongFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class LongFieldMarshaller implements FieldMarshaller
{
@@ -1,7 +1,7 @@
//
// $Id: Marshaller.java,v 1.4 2001/06/11 17:42:20 mdb Exp $
// $Id: Marshaller.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -13,9 +13,9 @@ import java.util.Arrays;
import java.util.ArrayList;
import java.util.Comparator;
import com.threerings.cocktail.cher.Log;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.cocktail.cher.io.ObjectStreamException;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.io.ObjectStreamException;
/**
* The marshaller inspects the class with which it is constructed and
@@ -1,7 +1,7 @@
//
// $Id: ObjectStreamException.java,v 1.3 2001/05/30 23:58:31 mdb Exp $
// $Id: ObjectStreamException.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
import java.io.IOException;
@@ -1,15 +1,15 @@
//
// $Id: OidListFieldMarshaller.java,v 1.1 2001/08/02 05:09:21 mdb Exp $
// $Id: OidListFieldMarshaller.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.cocktail.cher.dobj.OidList;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.OidList;
public class OidListFieldMarshaller implements FieldMarshaller
{
@@ -1,14 +1,14 @@
//
// $Id: ShortFieldMarshaller.java,v 1.3 2001/06/11 17:42:20 mdb Exp $
// $Id: ShortFieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class ShortFieldMarshaller implements FieldMarshaller
{
@@ -1,7 +1,7 @@
//
// $Id: Streamable.java,v 1.1 2001/08/16 03:25:14 mdb Exp $
// $Id: Streamable.java,v 1.2 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
import java.io.IOException;
import java.io.DataInputStream;
@@ -1,14 +1,14 @@
//
// $Id: StringFieldMarshaller.java,v 1.4 2001/06/11 17:42:20 mdb Exp $
// $Id: StringFieldMarshaller.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.dobj.io;
package com.threerings.presents.dobj.io;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.threerings.cocktail.cher.dobj.DObject;
import com.threerings.presents.dobj.DObject;
public class StringFieldMarshaller implements FieldMarshaller
{
@@ -1,7 +1,7 @@
//
// $Id: TypedObject.java,v 1.4 2001/08/16 03:25:14 mdb Exp $
// $Id: TypedObject.java,v 1.5 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
/**
* A typed object is one that is associated with a particular type code.
@@ -1,14 +1,14 @@
//
// $Id: TypedObjectFactory.java,v 1.6 2001/06/13 05:16:25 mdb Exp $
// $Id: TypedObjectFactory.java,v 1.7 2001/10/11 04:07:52 mdb Exp $
package com.threerings.cocktail.cher.io;
package com.threerings.presents.io;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.util.HashMap;
import com.threerings.cocktail.cher.Log;
import com.threerings.presents.Log;
/**
* The encodable factory is used to unserialize encodable object instances

Some files were not shown because too many files have changed in this diff Show More