Commit Graph

873 Commits

Author SHA1 Message Date
Dave Hoover 72fe10238d Wrong "its"
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@984 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-15 20:15:43 +00:00
Dave Hoover 596e38abe8 Let's clone that helper from DropBoard & let it help.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@983 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-15 20:15:41 +00:00
Dave Hoover 6b1d055f10 We were only catching exceptions if we ran outside our piece array.
It was still possible to ask and get answers for invalid coordinates
as long as the resulting index was kosher. Check for that.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@982 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-15 20:15:40 +00:00
Dave Hoover 3d3a232609 We do that math a lot, so make helpers & trust the compiler to optimize.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@981 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-15 20:15:37 +00:00
Michael Bayne f61338ec1d No longer need to pass a MessageManager when constructing the ChatDirector.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@979 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-14 15:53:05 +00:00
Mike Thomas 78f56f881a Add a new wacky feature to the editor - ctrl-clicking in add tile mode will select the tile you've clicked on as the new selected tile for future placement.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@977 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-14 00:59:11 +00:00
Nathan Curtis 2cf9d3abe0 That's odd... I'm not entirely sure why that compiled.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@976 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-12 23:24:26 +00:00
Mike Thomas 46e68dc0c0 After changing our bounds, we should really rethink whether we actually have the appropriate blocks resolved.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@975 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-12 17:36:40 +00:00
Bruno Garcia 3db0d26f8f DRY tweak.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@974 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-06 21:08:11 +00:00
Mike Thomas 0e25741292 Restore the editor's log to its previous splendor.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@973 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-06 18:16:56 +00:00
Andrzej Kapolka 140677fe71 Added missing import.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@972 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-05 21:37:49 +00:00
Mike Thomas 2aefe741ad Gah, these go with my last commit about handling server/client simultaneous moves.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@971 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-05 21:27:58 +00:00
Mike Thomas 9fe0c6f082 Fix a bug where the client & server happen to attempt to change location nearly simultaneously.
Rather than ignoring all forced moves from the server, let's instead ignore those which are truly duplicates of our pending move, but merely postpone those which are a separate move until our pending move is complete.

(This works very similarly to the change to LocationDirector in narya)

Relatedly, if a portal traversal is ignored due to staleness (again, due to near-simultaneous client & server moves), tell the client about it so that it doesn't wait around forever thinking it's got a pending move in progress.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@970 c613c5cb-e716-0410-b11b-feb51c14d237
2010-10-05 20:56:24 +00:00
Mike Thomas 45a8ad9a03 Need to save the scene director's pendingdata across a server-switch logoff/logon cycle when the user is moving via a zone move.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@967 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-31 20:09:54 +00:00
Mike Thomas aa406c1e45 Actually remove the character sprite from the scene rather than just from our list.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@966 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-31 17:30:52 +00:00
Charlie Groves 792dfe3ab1 We're fine with the class filling in default values outside of a constructor
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@965 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-31 01:22:07 +00:00
Mike Thomas 504ff8d366 Remove unused imports.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@964 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-30 17:15:52 +00:00
Bruno Garcia 8d2a42ff22 Pull out rating calculation to allow use outside of RatingDelegate.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@963 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-27 22:30:14 +00:00
Mike Thomas 77e9cfce00 Wire up handling of clicking on portals.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@962 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-27 21:32:46 +00:00
Mike Thomas 338309d543 Let's make StageLocation's clone() actually clone it.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@961 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-27 20:49:43 +00:00
Mike Thomas 32a348fa2c Wire up so descendants can do something when sprites are clicked.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@960 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-18 20:23:00 +00:00
Mike Thomas 7884435cd1 Since rendering the sprite itself isn't good enough to trigger the scene to re-render, let's directly check whether we've updated the sprites and if any have, we'll rerender the object IsoScene
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@959 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-17 18:38:49 +00:00
Mike Thomas 51bb948925 Register the character sprite appropriately so we can be hit-test against on mouseover.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@958 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-17 17:07:38 +00:00
Mike Thomas d3840b6f58 Using the new mouse-pointing-at stuff from nenya, let's have portals that we're not pointing at below the objects just like in java.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@957 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-14 05:10:39 +00:00
Mike Thomas 3982bdd7a2 Use the smooth centering of MisoScenePanel
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@956 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-13 23:29:58 +00:00
Mike Thomas 155b0bf2d6 When you arrive where you were walking, recenter the view.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@955 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-13 21:15:30 +00:00
Mike Thomas a1ebef955c We're doing pathing now, so follow along with nenya's changes.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@954 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-13 20:29:10 +00:00
Mike Thomas 976b044aaa Follow move of Ticker.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@953 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-11 22:06:07 +00:00
Mike Thomas 3d0615cedd Use the Ticker to handle the ticking of the underlying character sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@952 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-11 20:10:48 +00:00
Dave Hoover 69577bb939 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@951 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-11 18:09:36 +00:00
Dave Hoover 4e9d20e6d5 Typoo
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@950 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-11 18:09:36 +00:00
Dave Hoover 66ec924675 Use StreamableArrayList.newList()
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@949 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-11 18:09:34 +00:00
Mike Thomas fa558d11ae Fancier iso sprites for the character - let the scene panel extension define the display object to show.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@948 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-10 23:46:34 +00:00
Mike Thomas 9199f4ccc7 This can handle any type of tileset it can get base sizes out of.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@947 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-10 22:55:20 +00:00
Mike Thomas 49e6887358 A few bits I'd marked as part of the pathing overhaul that I can just get now.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@946 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-10 03:59:48 +00:00
Mike Thomas 2ab5d2dbbe Fix some bugs causing occupant updates to get lost.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@945 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-10 03:42:33 +00:00
Mike Thomas ea5b4e7959 Checkpoint commit wiring up a CrowdStageScenePanel that handles Occupant locations and making a sprite for them on the screen. Lots of TODOs still in this stuff, esp. related to Pathing.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@944 c613c5cb-e716-0410-b11b-feb51c14d237
2010-08-06 05:23:59 +00:00
Ray Greenwell 607d85ff9b Prefer StringBuilder where possible.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@943 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-22 01:20:12 +00:00
Ray Greenwell 2ee6ddb355 Rather than put things in a HashSet and then use the "sorted iterator", which
really copies everything to an ArrayList and sorts it,
let's just throw the elements into a TreeSet and iterate over that.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@942 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-19 18:57:22 +00:00
Mike Thomas c2c2631435 Remove some debug printouts.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@941 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-16 18:32:44 +00:00
Mike Thomas fc2a13f1be Add in portal support in AS Stage panel.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@940 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-16 05:54:36 +00:00
Ray Greenwell 50e4daaf0c Use ComparisonChain here.
Does anyone know if these colorization names can indeed be null?
Otherwise we can remove the null-safe comparator.
It was previously calling ObjectUtil.compareTo() which leads
me to think it needed null-safety.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@939 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-14 21:02:21 +00:00
Ray Greenwell 0a0a658c94 Prefer guava over samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@938 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-14 20:43:13 +00:00
Dave Hoover dc789fc46d In with the new logging
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@937 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-09 23:33:56 +00:00
Mike Thomas b7f8279245 Match the related nenya change to MisoScenePanel
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@936 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-09 23:28:36 +00:00
Mike Thomas 7272ec222a As part of the second pass on AS recoloring, setup recoloring scenes appropriately.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@935 c613c5cb-e716-0410-b11b-feb51c14d237
2010-07-07 18:05:54 +00:00
Par Winzell bd132e83b0 Let's not explicitly require an IntSet here either.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@933 c613c5cb-e716-0410-b11b-feb51c14d237
2010-06-22 16:17:19 +00:00
Dave Hoover 3536e0225a That should be private.
If it's public, we try to shadow it in a subclass & wind up still
getting THIS one.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@932 c613c5cb-e716-0410-b11b-feb51c14d237
2010-06-18 23:40:19 +00:00
Dave Hoover 4f6a3767fd Like getPendingModel, cope if there's no _pendingData
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@931 c613c5cb-e716-0410-b11b-feb51c14d237
2010-06-18 23:40:18 +00:00
Mike Thomas b9a8ea6454 Use the modified nenya Miso bits.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@930 c613c5cb-e716-0410-b11b-feb51c14d237
2010-06-16 22:57:16 +00:00