Commit Graph

645 Commits

Author SHA1 Message Date
Robert Zubeck 83e02730cf Fixes for property setting via atomic test-and-set:
- Moved property testing, so that it happens before any propertySet events are
  dispatched. In the previous version, testing happened while processing the
  set event on the server - but since by that time client events have already been 
  sent, it introduced the possibility of short-lived inconsistencies between client 
  and server data models.   

- Introduced a separate EZ API call for test and set - not only does it perform
  the test, but unlike regular set, it does not cache the new value ahead of time. 
  Instead the new value will have to arrive from the server, at some future point.

- Trimmed PropertySetEvent and other handlers back down - they don't need to
  carry any of the test info around, after it's already been performed. Also 
  cut redundant testing on the clients.




git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@195 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-19 19:40:09 +00:00
Mark Johnson e21ad04665 A simple extensible tournament management framework
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@194 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-17 00:30:20 +00:00
Robert Zubeck bdfcd156ab For EZ property sets, added a setter that performs an "atomic" test-and-set:
it's atomic in the sense that a single server event will test the variable, 
and only set it if the previous value was null (i.e. didn't exist). 
This allows for a level of elementary synchronization between the clients.

The new function on EZGameControl is:
  _gameCtrl.testAndSet (propertyName, newValue[, index])

I hoped to generalize this to test against arbitrary values, but that's 
significantly harder, since properties accept numerous types as values,
and those can have different representations on the client and the server.
So it remains a check against null until we need to generalize it. :)





git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@193 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-15 21:55:49 +00:00
Ray Greenwell 720a409185 playerIdx -> playerId
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@192 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-15 01:53:17 +00:00
Ray Greenwell 2c89082a2e Bugfix: hadn't tested this with seated games. :)
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@191 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-15 00:05:11 +00:00
Ray Greenwell ee871c3f2f Occupant events.
Undocumented, I'm sure we'll change some things around soon.
Fixed a few bugs, too.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@190 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 23:50:33 +00:00
Ray Greenwell c8ee960c0d Whoops! Forgot to wire one of the new functions up!
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@189 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 03:45:12 +00:00
Ray Greenwell a8521ecb84 Use some of my acquired special knowledge.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@188 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 03:44:36 +00:00
Ray Greenwell 57facfd1a2 Moved adapter functions for backwards compatibility to their own class.
That way, when a function is changed the compiler will tell us about
any matching change we may need to make to WorldGameControlBackend.
Otherwise, the override function that may be present in the world version
may shift to overridding the adapter function.
It's also just cleaner to move these adapter functions to their own class.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@187 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 03:09:55 +00:00
Ray Greenwell e5d5480e9b EZGameControl updates:
- switched everything to be based on playerId instead of index
  (which doesn't make sense for a party game.)
- started adding new functions
- backwards compatible with all old games!


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@186 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 01:59:29 +00:00
Robert Zubeck 00e771e7a5 Updated the dictionary service, now with Real Functionality :) - loads language-specific
dictionary files, and acually uses them for user queries.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@185 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-14 00:30:46 +00:00
Robert Zubeck 7ab410dde4 Added an asynchronous dictionary service, to perform word lookups
and other dictionary tasks as separate job units on the Invoker thread
(that's because we want to be as lazy as possible about loading 
dictionary files, but those can take a while :).



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@184 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-13 01:47:13 +00:00
Ray Greenwell 1de048c799 Made getGameType() public.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@183 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-13 01:22:03 +00:00
Ray Greenwell de354c0e7b Did away with PartyGameConfig, added getGameType() to GameConfig.
Changed the names of the 3 standard game types, but I could be convinced
of better names:

SEATED_GAME: normal match-made game, a game with a set list of players that
             does not change.
SEATED_CONTINUOUS: the game starts immediately, but people join the room
             and then choose a place to sit to become a player.
PARTY: no seats, anyone that enters is a player.

Also, changed SEATED_CONTINUOUS to create an occupants array and auto-sit
the creator, since I'm pretty sure we'll want to show seating in the lobby
for those types of games (but it actually does neither right now, code
needs to be written either way, depending on UI decisions.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@182 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-13 00:50:29 +00:00
Robert Zubeck 400389ca03 Adding two dictionary-related functions: checking a word against a dictionary,
and retrieving a set of language-specific letters. This is just a transient checkin, since 
it only pushes data both ways through the ActionScript/Java interface ("small step for 
mankind, huge step for me" kind of a thing ;). Word lookup logic will be coming next.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@181 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-12 23:32:37 +00:00
Michael Bayne 7a36e3a858 Regenerated ActionScript listener marshallers.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@180 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-12 21:52:20 +00:00
Ray Greenwell b63c756a1f Wrapped values are now automatically unwrapped at a lower layer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@179 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-12 19:57:46 +00:00
Michael Bayne 62808c9fc6 We got more sinkin' up to do man. Yeah man, it's mighty groovy.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@178 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-11 03:33:04 +00:00
Michael Bayne 75b34c6bf6 New service group world order. My enthusiasm for widening is being stretched.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@177 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-11 01:37:46 +00:00
Ray Greenwell 61d8f478e1 Removed debug that slipped in.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@176 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 20:56:07 +00:00
Ray Greenwell f9dcdd0627 Have the TableDirector place a party game creator in the game, rather
than forcing them from the server.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@175 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 20:53:05 +00:00
Ray Greenwell 3a387c7d8a - Start party games immediately.
- Validate users differently for party games.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@174 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 03:33:51 +00:00
Ray Greenwell 3bd6b15304 Added a convenient method to get the PartyGameType.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@173 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 03:33:31 +00:00
Ray Greenwell bde4a67bed Backend changes to support party games.
This will force us to migrate soon to a OID-based player indexing system.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@172 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 03:32:55 +00:00
Ray Greenwell 71b9ba2827 There was some code in here to not change the turn when only one player is
left. Go ahead and don't start the turn when there are no players,
and don't change it when there are 1 or LESS.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@171 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 03:31:47 +00:00
Ray Greenwell d902b2ed81 Fix NPE when purging a party game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@170 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 03:26:46 +00:00
Ray Greenwell 26c6274289 Remove debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@169 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 01:52:20 +00:00
Ray Greenwell 729335a4a5 The table system now supports the party game types better.
The creator of a party game isn't joining, but I think that's a problem
with the msoy client...


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@168 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 01:36:06 +00:00
Ray Greenwell e6c3bc3dd2 Fixed doc.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@167 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-10 01:32:35 +00:00
Robert Zubeck f8bf896e22 Quick fix to how objects are tested before being sent in a message.
We used to compare them against the Object class, but that doesn't work 
well in the presence of multiple application domains. So instead we
check for the presence of parent classes.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@166 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-09 21:42:13 +00:00
Dave Hoover 69f47e8ed2 Out out, damned question marks.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@165 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-05 21:22:28 +00:00
Ray Greenwell 0c1044b651 A little UI love for the # of players slider.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@164 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-02 22:15:48 +00:00
Michael Bayne 4e10f48a3b Config -> PrefsConfig.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@163 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-31 01:33:16 +00:00
Michael Bayne 525cffcf5a Config -> PrefsConfig; avoid matching a deprecated method.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@162 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-31 00:50:18 +00:00
Michael Bayne f139e30daa Annouce a player's game over *in* playerGameDidEnd() rather than after because
a natural thing to do in playerGameDidEnd() is replacePlayer() the departed
player with an AI but if we wait until after playerGameDidEnd() to announce it,
we end up announcing the departure of the newly configured AI.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@161 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-29 18:07:33 +00:00
Ray Greenwell a8108fdaa0 Extend from Canvas so that the chat overlay scrollbar works.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@160 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-29 00:14:51 +00:00
Ray Greenwell 570a8267d2 - Retain a reference to our panel in didInit().
- Cleanup.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@159 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-28 21:47:34 +00:00
Michael Bayne 4079b25024 Out! Out!
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@158 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-25 19:37:30 +00:00
Michael Bayne a7f1058eaa In these glorious modern times, we can tell the compiler about deprecation in
addition to the documentation system.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@157 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-25 19:37:21 +00:00
Ray Greenwell bb1b7ea333 Make a note as to why we're keeping this so that I don't see it and think
"Hey! That can be removed!"


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@156 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 23:12:22 +00:00
Dave Hoover 609452c291 Don't recurse infinitely calling createLabel with the same args over
and over. Casting host to a Component seems to make java find the
appropriate other function to call.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@155 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 22:55:11 +00:00
Michael Bayne 3307994221 Our host need not be a MediaPanel, but we'll preserve the MediaPanel signature
because no doubt much code exists in the wild that is compiled against that
signature.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@154 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 19:32:48 +00:00
Jonathan Le Plastrier 51fc3964bc On second thought, we'll take care of calling javadoc first.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@153 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 02:44:37 +00:00
Jonathan Le Plastrier a568110d1d We want our javadocs in the snapshot as well.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@152 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 02:27:34 +00:00
Jonathan Le Plastrier db7d7bd472 Let's build our snapshot into dist/ and not use ../snapshot as our temp directory.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@151 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 00:54:54 +00:00
Dave Hoover 1245defe65 Actually substitute keywords (these files are chock full of stale $Id$ tags)
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@150 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-24 00:22:09 +00:00
Ray Greenwell 054c4469f3 Changes to match alterations to abjectscript's StreamableArrayList.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@149 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-22 19:59:06 +00:00
Ray Greenwell f347723abe Changes stemming from a changed MediaContainer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@148 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-18 00:37:54 +00:00
Ray Greenwell 29bec533d8 Documented the events currently being dispatched.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@147 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-12 23:10:30 +00:00
Ray Greenwell ae26fb8bcd Fill out PropertySetEvent's toString() for easier debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@146 c613c5cb-e716-0410-b11b-feb51c14d237
2007-01-12 19:15:46 +00:00