Walter Korman
6ff80f8a92
Don't merge dirty rectangles when moving a sprite if the rectangles
...
don't overlap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@555 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 03:01:13 +00:00
Walter Korman
c9535eca02
Simplified dirty item render sorting. General clean-up and comments.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@554 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 01:42:49 +00:00
Walter Korman
4b1f7af899
Merge any overlapping dirty rectangles before making them available to
...
outsiders.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@553 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 01:40:26 +00:00
Walter Korman
1dcad7f6b0
Create only a single dirty rectangle when a sprite moves. Cleaned up
...
bounds and rendered bounds discrepancies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@552 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 01:39:38 +00:00
Michael Bayne
882dc381b0
Added moveBack() which requests to move to the location we occupied
...
immediately previous to our current location.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 03:10:30 +00:00
Walter Korman
092d96509e
We can't merge dirty rectangles for each dirty item when rendering
...
into a single rectangle, since doing so may cause new areas to be
dirtied that impact portions of other sprites or objects that won't
get properly redrawn. Sigh.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@550 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:33:47 +00:00
Michael Bayne
000463f491
Added a "Go" button to games in progress that can be used to enter those
...
game rooms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:26:54 +00:00
Michael Bayne
6cc3631d48
Rearrangements and added code to clean up after tables when their
...
associated games finally go away.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@548 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:14:38 +00:00
Michael Bayne
30185cb814
Shut down the game manager when everyone leaves the room. The game object
...
and manager will simply disappear at that point which means that the game
will be aborted if it hasn't yet been completed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:00:54 +00:00
Michael Bayne
96b0faff38
Forgot to implement ObjectDeathListener.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@546 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:00:09 +00:00
Michael Bayne
75327a0b40
Scene manager now follows place manager example in requesting an unmap
...
from the scene registry during its shutdown process.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@545 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:58:12 +00:00
Michael Bayne
ac62348afc
Modified shutdown handling such that the place manager now listens for
...
place object death and lets the place registry know to unmap it during its
shutdown process.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:57:39 +00:00
Walter Korman
c839b61548
More polishing work on scene rendering.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@543 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:55:08 +00:00
Walter Korman
7263ecba95
Added test female pirate character.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@542 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:52:54 +00:00
Michael Bayne
ae114ceae2
Notes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:40:25 +00:00
Michael Bayne
7a305193ff
Unmap our scene manager when its associated place is destroyed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:38:54 +00:00
Michael Bayne
fb587d2190
PlaceManager now downcalls to let derived classes know when it becomes
...
empty. Some derived classes will probably want to commit suicide at that
point.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@539 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:38:01 +00:00
Michael Bayne
bf777349cc
PlaceRegistry now finds out about place destruction and unmaps the place
...
manager accordingly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@538 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:37:24 +00:00
Michael Bayne
57b2e93ac3
Modified DObjectManager.createObject() to not afford optional subscription
...
because subscription no longer means receiving events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:36:40 +00:00
Michael Bayne
660fccceb4
Don't log when we're woken up to read data but there's none available.
...
We'll debug that probable Linux JVM bug later.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:35:37 +00:00
Michael Bayne
15ff048a27
Created mechanism for listeners to hear about object death.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@535 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:56:12 +00:00
Michael Bayne
218eea6dc2
Changed TableManager to TableDirector. Will I ever learn?
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:52:01 +00:00
Michael Bayne
ea3964d702
Now uses TableManager to do table management.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:47:33 +00:00
Michael Bayne
a4ceafd268
Extracted server side of table management from the parlor manager and put
...
it into its own table manager class so that each place manager that wishes
to perform table management can instantiate a table manager which can then
more easily track tables for that particular place.
Now handle occupants disappearing from pending tables properly. Still need
to sort out game object life-cycle tracking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@532 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:47:02 +00:00
Michael Bayne
095cbfb970
Stub implementation of handleLeaveFailed().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@531 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:26:30 +00:00
Michael Bayne
1849e90797
More progress on table lobby. Everything mostly works. Need to fix up some
...
boundary cases and deal with users and games going away.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@530 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:24:10 +00:00
Michael Bayne
246987893d
More progress on table services (can leave a table, things start correctly
...
now, and much much more).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@529 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:23:29 +00:00
Michael Bayne
690940db47
ElementUpdatedEvent wasn't registered.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@528 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:22:47 +00:00
Michael Bayne
1214056eba
More table services! Yay!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@527 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:22:17 +00:00
Walter Korman
64ed794d3d
Removed unnecessary clipping.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@526 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:04:07 +00:00
Walter Korman
cb7dd5a521
Added facilities for creating a veritable slew of dummy sprites that
...
walk around at random.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@525 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:03:49 +00:00
Walter Korman
53426bc5c4
Initial version.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@524 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:01:29 +00:00
Walter Korman
e4a101cfc2
On path completion, clear the path before observers are notified so
...
that they can assign a new path to the sprite should they choose to do
so.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@523 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 01:59:50 +00:00
Michael Bayne
dcf38d7a09
Have to pass a second arg to createPlace().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@522 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:42 +00:00
Michael Bayne
395c8a2a19
Added stubs for invocation service callbacks.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:25 +00:00
Michael Bayne
dc0df5bdf8
Javadoc updates.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@520 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:01 +00:00
Michael Bayne
6534413551
Have to pass second argument to createPlace().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@519 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:55:39 +00:00
Walter Korman
c6a2a488d4
Don't allow diagonal steps that are impeded by an impassable tile.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@518 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 21:32:13 +00:00
Walter Korman
c7d26cea8e
Fixed scene rendering issues and improved performance.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@517 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:21:42 +00:00
Walter Korman
7bd5d86c34
Use a mouse adapter to listen to mouse events.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@516 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:15:57 +00:00
Walter Korman
841f732174
Pass the dirty rectangle for a dirty item to its paint() method so
...
that we can join multiple dirty rectangles for an item into a single
larger item but still rely on the dirty item to know how to paint
itself.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:14:57 +00:00
Walter Korman
7d667778b1
We only need the dimensions for creating the offscreen image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:13:51 +00:00
Walter Korman
1c6e066444
Allow sprite sub-classes to modify their render offset more easily.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:13:09 +00:00
Walter Korman
9b3af10abe
Renamed getPoint() for posterity.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@512 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:11:59 +00:00
Walter Korman
97940360dc
Removed image from toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@511 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:11:25 +00:00
Walter Korman
d5d89b93d8
Allow specifying the origin of the character image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@510 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:09:48 +00:00
Walter Korman
ef97b42acd
Revamped iso scene rendering yet again to remove unnecessary dirty
...
rectangle propagation and to only render the dirty portions of dirty
objects and sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 23:26:31 +00:00
Michael Bayne
9b89a3f994
Back-end facilities for table matchmaking.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 22:02:36 +00:00
Michael Bayne
3a4d8f7d77
Added facilities for observing the creation of the place object.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@507 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 22:02:20 +00:00
Michael Bayne
cc5473745e
Modified startTurn() to get the player name from the _players array rather
...
than looking up their body object (because we don't *really* need them to
be online to start their turn).
Also added a sanity check to startTurn() to ensure that someone didn't
booch the _turnIdx before calling it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 21:07:06 +00:00