Commit Graph

131 Commits

Author SHA1 Message Date
Michael Bayne eb0f92fcef Brought things into line with new streaming world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 05:54:53 +00:00
Ray Greenwell 71c7a488c9 byte'd chat mode code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1600 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:54:04 +00:00
Ray Greenwell 5c5038690b Added support for think and emote.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1599 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:26:26 +00:00
Ray Greenwell 3d71bd858a added a getUnoccupiedLocation() that only gets a location within
a specified cluster.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-25 01:41:59 +00:00
Michael Bayne cabfc118cb Whoops; don't try to mark a location as reserved if we couldn't find one.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 23:06:40 +00:00
Michael Bayne b32ca52809 Fixed up logging; added code to mark a location as reserved when we return
it from a call to getUnoccupiedLocation(). Anyone can move into the
location (regardless of who reserved it), but it won't be reported as
unoccupied until someone enters it and leaves from it once again.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1520 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:38:58 +00:00
Michael Bayne 9f61770db1 Removed verbose debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1518 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:16:09 +00:00
Michael Bayne eb3a4909d6 Moved getUnoccupiedLocation() into SpotSceneManager; created SpotSceneUtil
which contains the routines to do it; modified said routines to allow them
to be called with the internal location tracking array maintained by the
spot scene manager because that is the only thing guaranteed to be truly
up to date; made use of where() in spot scene manager's log messages.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1517 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:14:58 +00:00
Michael Bayne cb14ec144c Use IntListUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1516 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:13:39 +00:00
Michael Bayne 300312782a Added a StringUtil Formatter for printing out only the user oid and
location id from an occupantInfo set.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:13:20 +00:00
Michael Bayne fadf226677 Added convenient where() method to PlaceManager which is used when logging
errors to report the "place" in which the error happen. The SceneManager
overrides this to include scene information. Scrupulous use will make log
messages much more scrutable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:12:23 +00:00
Michael Bayne d88e6bc490 Provide access to scene name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:10:56 +00:00
Ray Greenwell a3196fbad3 added inValidLocation() to check if an player is in a non-portal location
within the room.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:22:51 +00:00
Ray Greenwell 50d78fecc4 removed unused method
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 20:27:07 +00:00
Ray Greenwell 0317828b1d Clone the occupant info before updating the location. This fixes the
beamed-in NPP problem- they were updating their location on the server
before the element added event was even distributed to the clients.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 23:03:44 +00:00
Ray Greenwell 36a8a9672f zone moves and portal traversals can now have an optional result listener
passed in.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:40:16 +00:00
Michael Bayne 891e1a319f Return true if we send a traverse portal request, false if we don't.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:27:53 +00:00
Michael Bayne a7a427f972 Return true from moveTo() if we actually sent the request, false if the
request was rejected out of hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:24:49 +00:00
Michael Bayne 25b22b4f11 Need to mark our last move request time regardless of whether we have a
pending request outstanding.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:19:16 +00:00
Michael Bayne b9000bf08c Don't declare a pending moveTo request to be stale until at least a minute
has gone by. This prevents us from getting shafted by double clicks.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 00:57:49 +00:00
Ray Greenwell c1a92c761b Keep track of which locations are portals and don't track users when they
move there and prevent more than one user from occupying a portal.
Removed unused method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:05:55 +00:00
Ray Greenwell eadfe2bad1 Don't make the occupant move to the portal location when they traverse it,
they'll handle that themselves now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:04:41 +00:00
Ray Greenwell e3df1a5894 Don't request to change locations if we're already there.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:03:23 +00:00
Michael Bayne 0ce79473fb Whoops, forgot to register the scene and zone directors as invocation
receivers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:35:02 +00:00
Michael Bayne d0e1722083 Oh yeah, moveBody() needs to be static.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:29:13 +00:00
Michael Bayne 97197d49cc Added support for initiating a place/scene/zone transition from the
server; chat director no longer needs to wait until we're logged on to
register itself with the invocation director.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:24:46 +00:00
Michael Bayne 16d4bfabca Demoted some log messages to debug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 05:58:55 +00:00
Walter Korman 86a9d88ed8 Clear out our scene when the client logs off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 21:48:44 +00:00
Michael Bayne b15d38b54d Relegated a shitload of logging to DEBUG status.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1361 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-15 23:54:35 +00:00
Michael Bayne ccf0dca140 Don't issue an ALREADY_THERE response if a user requests to move to a zone
they already occupy. When a client logs on after a disconnect, it needs to
do a zoned moveTo request to get back to where it was because it doesn't
have the zone summary and associated good stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-03 00:00:17 +00:00
Michael Bayne c15f763ba0 It's a feature!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-02 19:34:51 +00:00
Michael Bayne 4ec673e6c2 Localized chat! Server entities may now fake speak and tell messages that
are translated by the client upon receipt. We love to translate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1319 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-30 17:27:30 +00:00
Ray Greenwell 0fe4f660a5 Let any object receive success/failure responses for a traversePortal
request.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1317 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-29 21:03:00 +00:00
Ray Greenwell 57a937839d Allow any object to be used as the response target for a moveTo request.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-26 00:07:05 +00:00
Walter Korman c47ba0dc66 Sanity-check the destination scene id for moveTo() requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1275 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 14:08:47 +00:00
Michael Bayne 3e4540958a Made occupant info into a simple streamable object because it was
screaming out for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1271 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 22:19:40 +00:00
Ray Greenwell a11bff9cf8 Allow objects such as a NPPirate to receive the results of a changeLoc
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1267 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 17:07:13 +00:00
Michael Bayne 4047bbbf18 Whoops. Missing an import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1263 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 00:20:56 +00:00
Michael Bayne e4185bd7a1 Added getModel().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 00:16:34 +00:00
Michael Bayne fb74c17fd7 Modified moveTo() so that other entities than the ZoneDirector can call it
and receive the callback (like the NPPirate).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 17:36:17 +00:00
Michael Bayne 85cdabbbee Added some imports that were needed for javadoc comment resolution that
became necesssary when *Codes were moved out of .client and into .data.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-15 18:06:20 +00:00
Walter Korman a97e9db978 Moved remaining client.*Codes classes into their respective data packages
as they are intended to represent codes shared between the client and the
server.  Made correspondingly necessary changes throughout.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1240 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-15 16:28:05 +00:00
Michael Bayne 1cf81e9882 Report the config file we're using to configure database connections.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1217 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-08 18:36:42 +00:00
Michael Bayne a2db66aa21 More Config rethink.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1167 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-28 23:59:34 +00:00
Michael Bayne b486315e47 Revamp! Modified the way configuration is handled.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1166 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-28 22:32:34 +00:00
Michael Bayne 38ca708a4f Modified authentication process such that an authenticator thread is no
longer maintained. Implementations can choose to create their own
authentication thread if they wish or use some existing combination of the
invoker and dobjmgr threads. Also added an invoker to the base server
class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1085 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-05 03:19:18 +00:00
Michael Bayne ae5d0fbcb3 Added calls back into the zone manager to allow it to accept or reject a
zone entry request and for it to be notified when a zone entry is
completed. (So that it can do any processing that it might care to do.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-07 03:26:58 +00:00
Walter Korman 1415319aab Edited auxilliary -> auxiliary.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-03 08:22:38 +00:00
Michael Bayne c1dcc614f7 Clean up marshalling a bit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@913 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-01 23:43:45 +00:00
Michael Bayne 93d36a81ef Moved ZoneUtil from whirled.zone.server.util to whirled.zone.util because
we need to use it on the client. This will necessitate some CVS jockeying
because the server/util directory no longer exists in the repository.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@892 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-29 02:05:49 +00:00