Commit Graph

102 Commits

Author SHA1 Message Date
Robert Zubeck 08618a4d74 Now that the server uses the new version, we can finish renaming
DictionaryService to DictionaryManager.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@200 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-20 00:43:42 +00:00
Robert Zubeck 3dcf2a70a4 Renaming DictionaryService -> DictionaryManager, since a 'service' has a very
specific meaning, and will be treated differently by wrapper generatin scripts.



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@199 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-20 00:30:55 +00:00
Ray Greenwell 38016c0ab0 - The server should apply the property set immediately, not wait until
the event trundles through the queue, especially since the 'test' was
  being done immediately.
- Simplified some stuff on the server.
- Fixed up the test, as EZgame arrays will auto-grow.
- Do not set the property immediately on the client! Dangerz! We will add
  a new function for that, so that set() behaves like testAndSet() without the
  test, and set() behaves like setImmediate() without the immediate.
  (And there's no such thing as test and set immediately.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@196 c613c5cb-e716-0410-b11b-feb51c14d237
2007-02-19 21:12:43 +00:00
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 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 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 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
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
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
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 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
Dave Hoover 86a879a725 Type safety
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@136 c613c5cb-e716-0410-b11b-feb51c14d237
2006-12-27 07:55:38 +00:00
Michael Bayne e60e58c8b8 Use where, improved warning when we receive a playerReady() from a non-player.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@132 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-28 18:27:58 +00:00
Ray Greenwell 52febf265b Allow the TableManager to be configured to create subclasses of Table.
Commented out unneeded flash client code in Table.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@131 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-17 23:24:14 +00:00
Michael Bayne 0fb8e4e693 Steer newbies away from stupid decisions.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@127 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 22:41:27 +00:00
Ray Greenwell 0b8b31aaa6 Prevent server spew when multiple EZGame clients attempt to end the game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@126 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 21:03:51 +00:00
Ray Greenwell 3dd3c857fa Fixed SQL for saving cookies. Handy syntax, that
"insert ... on duplicate key" stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@125 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 20:48:49 +00:00
Ray Greenwell cff4238b3e Updates to EZGame to allow games to store 'user cookies'.
Then intention is that other games besides EZGame may use this as well,
so it's semi-separated, but for now it's part of EZGame.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@123 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-15 03:01:49 +00:00
Ray Greenwell aefd823e72 Explicitly import com.samskivert.swing things, as jdk1.6 contains
javax.swing.GroupLayout.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@120 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-08 00:21:26 +00:00
Michael Bayne d231214e59 Make the logging optional.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@119 c613c5cb-e716-0410-b11b-feb51c14d237
2006-11-03 00:15:46 +00:00
Ray Greenwell f8ddf4d7c9 Restored correct behavior in a non-fallthrough way.
(And personally, I think falling-through is fine if documented. Maybe we
need a @FallThrough annotation so that the compiler can be our best friend.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@117 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-26 23:40:48 +00:00
Michael Bayne 16f070f69c Falling through is a dangerous pattern, let's not do it.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@116 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-26 23:11:56 +00:00
Andrzej Kapolka f81adbda02 Do we really need a stack trace here? I don't think so.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@110 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-13 01:56:55 +00:00
Andrzej Kapolka 45350177e1 Moved the Percentiler test over as well, added preambles.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@109 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-12 22:52:17 +00:00
Andrzej Kapolka c978fe70e8 Moved Percentiler to Vilya so that we can use it in Bang.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@108 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-12 22:42:45 +00:00
Michael Bayne 6c0f497eef Use new ChatDisplay interface.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@107 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-10 21:48:51 +00:00
Ray Greenwell 2717fd3b24 Allow tables to be started (by the creator) when there are at
least the minimum players present.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@106 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 02:13:20 +00:00
Michael Bayne 77e22d65fc Some ActionScript conversion updates.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@102 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-06 00:35:00 +00:00
Michael Bayne 1ad2584a17 Rebuilt various bits using the code generator. Annotated some Java sources
along the way.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@99 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 21:00:38 +00:00
Ray Greenwell 0ecfaac648 Added EZGame.getPlayerCount().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@98 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 01:45:16 +00:00
Michael Bayne 451218a1a4 Updated using the code generator.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@96 c613c5cb-e716-0410-b11b-feb51c14d237
2006-10-05 00:47:20 +00:00