Commit Graph

3811 Commits

Author SHA1 Message Date
Mike Thomas dfc8112277 Split out fading sprite capability from the CardSprite class so it can be extended and used elsewhere.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-24 19:46:34 +00:00
Ray Greenwell 765fdc8edf Optimization: grow ourselves to the needed capacity prior to
fully reading elements off the stream to avoid repeatedly allocating
storage arrays and copying or rehashing the elements.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3818 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 23:08:02 +00:00
Mike Thomas d38c31027c Fix some stylistic stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3817 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 21:11:15 +00:00
Mike Thomas c866377681 Bugfix - This MAY be the elusive sync bug(s). Puzzle controller queues progress events, then sends them periodicially on a tick. The round-id at the time of the tick is used to make sure stale events aren't sent. BUT, the queue never used to be cleared when the round changed, so stale events already in the queue could still be sent. Now clearing queue on round change.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3816 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 19:09:45 +00:00
Ray Greenwell b994d709d3 A possible fix for someone who is having problems with the card flipping:
http://forums.puzzlepirates.com/community/mvnforum/viewthread?thread=30539&firstunread=yes


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-20 01:25:05 +00:00
Michael Bayne 73e0a05b5f An internal error should always be accompanied by a log message. We could rely
on the adpater user to sort that out, but it's easier to just log things here
and save everyone time and effort.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 22:45:11 +00:00
Ray Greenwell 96f017fc3e Added getCards() convenience method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 21:50:53 +00:00
Ray Greenwell 94ee4c7e9f Fixed two last cases of ignored listeners that ice testing has uncovered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3812 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:50:42 +00:00
Ray Greenwell 918c61c77e Another place where we ignore a listener.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3811 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:43:12 +00:00
Ray Greenwell 78f7b7f3e0 Avoid logging spurious warnings about ignored listeners that weren't
really ignored, but just never got responded to due to a bigger problem.
(The bigger problems are already logged.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3810 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:40:05 +00:00
Ray Greenwell 60c204a93a Added a method that can be called to indicate that a response will
intentionally not be sent to the listener.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3809 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 00:53:35 +00:00
Ray Greenwell e2cfd1de80 Added getPartyGameType, similar to the method in PartyGameConfig.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3808 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-18 22:15:05 +00:00
Michael Bayne 573125d3d1 Use the standard chat command handling instead of hacking in our own support.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-18 19:39:34 +00:00
Ray Greenwell d67825b213 Provide an easy way to add to toString() info.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3806 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-17 23:28:21 +00:00
Michael Bayne bf5fff9ee1 Don't forcibly render layer components that are not currently visible; added a
mechanism for layer components that know they will never be "under-rendered" to
avoid the expense of forced rendering on every tick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3805 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-16 21:21:22 +00:00
Ray Greenwell 7f98cac7a8 - Revamped PartyGameConfig so that it can report which type of party game
it is (seated or free-for-all) or if it's not a party game after all
  (which the old interface supported and we may need in the future).
- Cleaned up the setting of table occupants to make the extension in yohoho
  cleaner.
- tables are now party-game aware and will do the right thing with
  the occupants list.
- simplified Table.equals() and added a corresponding hashCode(), because
  two objects that are equals() must give the same hashCode.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3804 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-13 01:52:36 +00:00
Mike Thomas bf45bb876e Added ability for card sprites to be flipped to reveal a different card's image (such as from the card-back to a front). This is done by gradually scaling horizontally to no width, then scaling back up with the new image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3803 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-09 21:45:06 +00:00
Michael Bayne 965dc959e5 Fixed le booch.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3802 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-06 04:44:05 +00:00
Michael Bayne 207a1f9e1a Switch to the stylesheet world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3801 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-06 04:42:39 +00:00
Andrzej Kapolka 2ef4dc2a22 Added methods to set animation repeat type in addition to active
state and speed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3800 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-04 23:08:48 +00:00
Michael Bayne 1918b8adac Had grammatical beans above the frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3799 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 23:25:41 +00:00
Michael Bayne 6180e15b5f Created a full-screen fade in out effect. I ended up deciding not to do
anything special for full-screen effects. They will be added to the interface
node and should set their z order to a positive value to render above the UI
and a negative value to render below it. Otherwise we don't really need to
impose a whole lot of structure.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 23:25:07 +00:00
Michael Bayne 3ac76f7d9e Added showingStatistics().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3797 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 19:46:34 +00:00
Michael Bayne 82bcdc13f9 Allow statistics to be toggled on and off at runtime.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3796 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 19:41:07 +00:00
Michael Bayne 4324149cdb We queue ourselves up every time an event comes in, so we should only process
one event when our run() method is called and then let other (non-distributed
object) things get their chance to run in proper order.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3795 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 19:30:39 +00:00
Mike Thomas 7ecb150627 Oops. Fixed memory leak in FrameInterval by calling cancel if we're not repeating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:14:36 +00:00
Ray Greenwell 852620bea4 Regenerated marshallers with new response-tracking code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:12:57 +00:00
Ray Greenwell 4cb18bd5ab Wrote code to help automatically detect bugs.
Have invocation marshallers track whether someone ever ended up responding
to the client: if they get garbage collected without ever doing so
(and they're not the base class InvocationMarshaller, which can only report
errors), log an informative error message.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3792 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:10:38 +00:00
Mike Thomas 5a57753d84 New client-side version of the Interval class which runs as a FrameParticipant, using the FrameManager's timing mechanism.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3791 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 01:48:15 +00:00
Mike Thomas fac90ce23d Split out announcement of a player elimination to its own function so we can override it for games where normal announcement doesn't make sense.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3790 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 00:52:30 +00:00
Michael Bayne 5225eb2a43 Changed handleStateChange() to stateDidChange() to be more consistent with
gameDidStart(), etc. and with the new GameManager.stateDidChange().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3789 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 21:01:36 +00:00
Ray Greenwell 7a64be94f2 Goodbye, NestableIOException.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 02:09:18 +00:00
Michael Bayne c7d36f9705 Changed AWAITING_PLAYERS to PRE_GAME; factored some code into stateDidChange().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 01:45:02 +00:00
Michael Bayne ecc5c40e73 Added support for handling filesets of config files to be parsed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3786 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-19 19:09:00 +00:00
Michael Bayne ecfe79eb35 Cope with invalid character descriptors more gracefully.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3785 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 22:14:37 +00:00
Michael Bayne 51d349295e Codified a common pattern into a helper class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3784 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 04:20:22 +00:00
Ray Greenwell fa1f5a0dd0 Added getClosest() for finding the closest direction in a list to one
specified. I'm not sure I'll actually end up needing this, but it's handy
for what I'm currently toying with.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 02:49:28 +00:00
Ray Greenwell 94abde8293 Made getActionSequence() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 02:48:02 +00:00
Mark Johnson 547ace1187 Added isRandomValidTarget used for selecting a new random target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3781 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-09 23:29:48 +00:00
Mike Thomas 12c9f86735 Add additional type of orientation to ArcPath - NONE - which keeps us from reorienting sprites following the path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 21:59:12 +00:00
Mike Thomas db5de88da2 Added capability to get translated (in x and y) versions of Arc and Line Paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 19:42:11 +00:00
Mike Thomas 04c13820ef Added ability to override hand-sorting on the card panel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3778 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 19:41:12 +00:00
Mark Johnson 8381da7cab Have board summaries always update before being broadcast. Don't
generate a summary for every change to a player's board.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-07 19:19:11 +00:00
Ray Greenwell 23087de145 Added a shutdown() method that removes us as a ChatFilter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3776 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-06 00:54:02 +00:00
Ray Greenwell 0e60a76e2b Interval.Runnable -> Interval.RunBuddy
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3775 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-05 19:41:44 +00:00
Michael Bayne d57adeca1c Big fat bernie OccupantInfo revamp. Now:
- OccupantInfo is created by the BodyObject
- the BodyObject is passed to the OI constructor and it uses information
  therefrom to configure itself
- the PlaceManager are no longer responsible for indicating the type of
  OccupantInfo to use or how to populate it.

This makes much more sense as the same type of OccupantInfo is generally used
across the entire system and it's annoying to have to have every PlaceMaanger
derived class know the type of OccupantInfo to create and know how to
initialize it. The one drawback is that only information from the BodyObject
can be used to populate the OccupantInfo, unpublished server-side only
information cannot be used (unless its stuffed into a transient field in the
BodyObject).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-03 03:05:06 +00:00
Mike Thomas 15ea2134e3 New type of CardSprite using the micro-card images.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3773 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-03 00:37:30 +00:00
Ray Greenwell 4e179766df - Update our own summary after our board is set (so that it'll update
if we re-enter a game in which we had a non-empty board).
- Made updateSelfSummary() public to support a change in yohoho.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3772 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-01 23:54:00 +00:00
Ray Greenwell 9f4f72318f Don't start the action when we enter the game if we're already knocked out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3771 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-30 03:45:12 +00:00
Ray Greenwell dc3cf4aa28 Added a new type of chat message: a UserSystemMessage is a system message
triggered by the activity of another user. The other username is provided
so that the message can be muted if desired.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3770 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-29 19:33:04 +00:00