Commit Graph

  • eab2ae7d91 Set gameconfig to an empty object until populated by the backend. Ray Greenwell 2007-04-09 20:45:03 +00:00
  • bf230b8998 - Fixed bug with creating the default header. - Don't set up the players labels if we're not connected. Ray Greenwell 2007-04-09 20:37:05 +00:00
  • 44ac9cf598 Let's do keyword substitution on the actionscript; it's got all those purty $Id$ tags, too. Dave Hoover 2007-04-07 00:25:58 +00:00
  • 8a4f086f32 Keyword substition. Dave Hoover 2007-04-07 00:22:45 +00:00
  • 782cf97f86 Let's allow localChat() without being connected. If nothing else it'll make 'standalone' game debugging easier. Par Winzell 2007-04-04 21:04:15 +00:00
  • a36376ccc2 Some cleanup/fixup, although we're probably not going to use this... Ray Greenwell 2007-04-02 21:24:07 +00:00
  • 744127a192 Prior to acting upon any call from usercode, ensure we're still connected. Otherwise, throw an error. Ray Greenwell 2007-03-30 19:58:26 +00:00
  • 4c696a579d let there be mroe than one TableObserver, now that lobbies are not places unto themselves Nathan Curtis 2007-03-28 00:34:27 +00:00
  • 8193a87ff2 Freak not out if we're shutdown before all of our games are ended. Michael Bayne 2007-03-23 21:52:56 +00:00
  • f62498de20 Idempotency is always handy. Michael Bayne 2007-03-23 20:45:58 +00:00
  • 418a549af7 More chat panel fiddling. Michael Bayne 2007-03-23 20:15:13 +00:00
  • d5d44b0d03 It's push, not add. Michael Bayne 2007-03-23 20:15:03 +00:00
  • ceb4ea2a07 Added the ability to delete stat records for a player ID Mark Johnson 2007-03-23 00:49:37 +00:00
  • e1ca18f8ed add getter for our currently seated table Nathan Curtis 2007-03-22 18:45:56 +00:00
  • ab29481f26 We need to be shutdown now so that we can clean up our invocation service. Michael Bayne 2007-03-22 00:46:37 +00:00
  • 459d8b75a0 TableManagerProvider is no more. Michael Bayne 2007-03-22 00:39:58 +00:00
  • fde9727f07 Nix place-specific willEnter and didLeave pattern since we're no longer bound to places. Michael Bayne 2007-03-21 21:51:11 +00:00
  • 9b5369ef99 Don't forget kids. We get to write everything twice now. It's great! Michael Bayne 2007-03-21 21:44:11 +00:00
  • b71007a909 Yay for rabbit holes. Revamped the table services to decouple them from places. While I was in there, I extracted the communication between the client and the TableManager into a new-style "embedded in the TableLobbyObject" service instead of wonkily routing everything through the global ParlorService and the ParlorProvider (which got merged into the ParlorManager as a part of this rabbit holery). The GG build will break... I will fix it. Michael Bayne 2007-03-21 21:38:31 +00:00
  • f61250f75b Allow the hint text to be put on the same line as the chat input. Michael Bayne 2007-03-21 15:58:57 +00:00
  • add74fd863 Alas this hack will be needed for all time it seems. Michael Bayne 2007-03-20 23:24:41 +00:00
  • ee0bea04e1 Nix some Bang specific stuff. Michael Bayne 2007-03-20 17:44:18 +00:00
  • e6ab89f313 Extracted the Bang stats system into reusable land. Too late for Yohoho, but Whirled will benefit. Michael Bayne 2007-03-20 17:23:18 +00:00
  • 6b2b9ecbbb update comment Nathan Curtis 2007-03-16 23:25:52 +00:00
  • 98de3ab53a this change goes with msoy r3274 Nathan Curtis 2007-03-16 23:23:46 +00:00
  • 59c6bf814b Fixed some logic I broke a few weeks back. There's no more isPartyGame(), and needsNoShowTimer() simply checks to see if the game is seated, but needsNoShowTimer() can be overridden and so I shouldn't have treated it as equivalent to !isPartyGame(). Ray Greenwell 2007-03-15 21:22:46 +00:00
  • 5ee8e02727 Scratch last night's change. Having the 'value' of the element be the tooltip is too strange for me. Discussed with mdb, decided to make everything attributes, including a new 'name' attribute which will be shown to users in place of the 'ident', if 'name' is present. Ray Greenwell 2007-03-14 18:30:30 +00:00
  • caf3f40dff Allow text inside the <range><choice> and <toggle> tags to contain the tooltip for a game configuration. - Removed ident translation of _ to ' ' for display purposes. Just use a nice name. Ray Greenwell 2007-03-14 03:48:42 +00:00
  • 227de3603e Nixed HostCoordinator and HostEvent as that functionality is now provided by EZGameControl. Michael Bayne 2007-03-14 02:59:46 +00:00
  • 636620c56e Adding a missing bit of info about the round API. Robert Zubeck 2007-03-14 01:08:33 +00:00
  • aea954ea91 Implement ChatCantStealFocus. Ray Greenwell 2007-03-13 18:53:13 +00:00
  • 2fc60fad88 Use a LabeledSlider for any range properties. Ray Greenwell 2007-03-13 01:18:26 +00:00
  • 77bc817f49 Use the new LabeledSlider instead of rolling our own. Ray Greenwell 2007-03-13 01:14:58 +00:00
  • 3825cf2e68 Allow EZGames to have custom configuration options specified as XML. Ray Greenwell 2007-03-13 00:50:14 +00:00
  • 565c700d61 Clarify, although can this be what is meant? There does not appear to be a way to start a new round other than by setting a nonzero delay when ending the previous round. Ray Greenwell 2007-03-12 22:23:00 +00:00
  • df483cd566 You can't use that! It's the square of an imaginary number! (0 should mean no-value) Ray Greenwell 2007-03-12 22:20:39 +00:00
  • 5b77f2f95d Added support for handling games with multiple rounds. Michael Bayne 2007-03-11 07:59:23 +00:00
  • b6c6b74d73 Dooh, failed to save my removal of this debug statement. Michael Bayne 2007-03-11 06:38:59 +00:00
  • 0306b072df Fixed decoding problem in GameControlBackend, switched to varargs in manager. Michael Bayne 2007-03-11 06:37:03 +00:00
  • 13b8913d5f Not all games are turn games. Let's not require that an unasked-for and arbitrarily assigned turn holder be the one to end the game. Michael Bayne 2007-03-11 02:31:35 +00:00
  • 91131810d4 Rollback to the previous hackery, this hackery didn't work. Ray Greenwell 2007-03-08 06:09:14 +00:00
  • 6b217bf77d Try... this? Ray Greenwell 2007-03-08 05:41:54 +00:00
  • f11f8663e1 Use the TextField hack ourselves. - Flash seems to sketch out when key events go elsewhere - Whirled now does the handy thing of re-routing 'word' keypresses to the ChatControl, unless a TextField has focus. We want to automatically let games get any and all keypresses... - The damn focus stuff is broken anyway Ray Greenwell 2007-03-08 05:23:54 +00:00
  • 66a7d642df The temporaray 'configData' is now renamed to 'gameMedia'. Brought in 'name' from MsoyGameConfig, because it's useful. Ray Greenwell 2007-03-06 19:26:42 +00:00
  • 69bed52e99 Was writing an email to query for opinions on this, then decided that this was the right thing to do. Go ahead and log the innards-laden stack trace, we'll be glad when there's a bug in our innards. Ray Greenwell 2007-03-06 19:20:17 +00:00
  • d38c43cd5b Throw an error if something booches talking to EZGame. The user will see a stack trace originating in the EZGameControl, hopefully with a useful message. Ray Greenwell 2007-03-06 19:04:11 +00:00
  • 0af2789c7b Extract the GameConfig creation into an overridable method so that TableManager users can do the right thing with regard to adding extra configuration stuff (rather than trusting the client to have done it). Michael Bayne 2007-03-06 02:20:12 +00:00
  • 384cc76cfe Don't make endGame varargs. Shoulda done this a while ago. Ray Greenwell 2007-03-06 00:20:25 +00:00
  • 03317dbfcd I see that it was not a desire for verbosity but rather a limitation of Flash that inspired the previous structure. Michael Bayne 2007-03-05 02:57:06 +00:00
  • d77b8363f7 Added a server managed notion of which client is controlling the game. Michael Bayne 2007-03-04 20:05:58 +00:00
  • 3c595d85a5 Test ByteArrays a different way. Ray Greenwell 2007-03-03 09:00:47 +00:00
  • 2e80b4f96b Added much needed method. Ray Greenwell 2007-03-03 08:32:18 +00:00
  • 70b9c7e43b It's a shame, because it's cool, but GameData isn't really needed anymore. It acted as a proxy for the distributed ez properties, such that you could set properties in the object and they'd magically go out over the network. Like so: Ray Greenwell 2007-03-02 08:38:45 +00:00
  • a27c60e4fe Adding extra connection guards to HostCoordinator Robert Zubeck 2007-03-01 20:08:28 +00:00
  • 14284325e2 Always with the forgetting to check things in! Repackaging. Ray Greenwell 2007-02-28 23:45:46 +00:00
  • 628e90b347 Updates to host coordinator: - every time we check for the host's existence, if the host doesn't exist or abandoned the game, the client will try to claim their role automatically - unified both event types into one "host changed" event - fixed bug that ignored negative player ids Robert Zubeck 2007-02-27 00:39:20 +00:00
  • 4df07f7ced That would be occu-PANTS! Ray Greenwell 2007-02-26 23:07:20 +00:00
  • c459a337ab Added seating.getMyPosition(), cuz it's so darn convenient, and we can do it on the backend more efficiently than seating.getPlayerPosition(getMyId()); Ray Greenwell 2007-02-26 22:59:56 +00:00
  • be388eaccf And another bug, something that wasn't wired up. Ray Greenwell 2007-02-26 22:30:24 +00:00
  • e192d7b24a Cookies can be retrieved for any occupant. Fix potential for NPE (passing null to our UserIdentifier) if an invalid occupantId is specified. Ray Greenwell 2007-02-26 22:16:38 +00:00
  • a5ba21f2bb Bugfix, getCookie was bumped to _v2 recently. Clarify that it applies to occupants, not just players. Ray Greenwell 2007-02-26 22:11:40 +00:00
  • 44ad4f517d Wait until the usercode has connected to the GameControlBackend prior to sending a playerReady notification to the server. Ray Greenwell 2007-02-26 19:20:15 +00:00
  • 6808911f65 Do not attempt to do things in our constructor if we're not connected. This allows games to create a HostCoordinator in their constructor and still not fail unrecoverably to display outside the client environment. Michael Bayne 2007-02-24 00:46:40 +00:00
  • 03876838b3 Gah, my bad: we've got to return the value from the friend function. Of course, the flash documentation says that function.apply() returns void, but luckily this is not the case. DO NOT TRUST THEIR DOCS, they are riddled with errors. Ray Greenwell 2007-02-24 00:42:24 +00:00
  • 33f55d5a8d Header patrol. Please be sure to use the header in lib/SOURCE_HEADER when creating new source files. Michael Bayne 2007-02-24 00:37:33 +00:00
  • f19a973e27 The larger point is, we shouldn't throw an uninformative NPE. Ray Greenwell 2007-02-24 00:13:22 +00:00
  • 200042c87e Return null if get() is called before we have our game data, rather than NPE. Michael Bayne 2007-02-23 23:29:43 +00:00
  • 9eedd5678c Making callEZCode() 'internal' booched it for WorldGameControl. Made it protected, added a second function for 'friend' access. We could use a custom namespace for this, too. Ray Greenwell 2007-02-22 03:53:44 +00:00
  • 9e8dce3619 EZGame API breakup. Possibly a little more to come. Ray Greenwell 2007-02-22 03:44:12 +00:00
  • 8a2539683b Don't create our own chat director, just use the one from the context. Michael Bayne 2007-02-22 01:56:27 +00:00
  • 98252184a9 Letter randomization is now weighted based on their distribution in the lexicon. No more Tangleword boards with only one vowel! :) Robert Zubeck 2007-02-20 02:23:02 +00:00
  • 3172353a54 Better yet, rip out premature optimizaton for something that is more correct. Also use some nice utility classes we have. Ray Greenwell 2007-02-20 01:36:07 +00:00
  • cfed094aa3 This really should've been an array of unboxed ints. Ugh. :) Robert Zubeck 2007-02-20 01:34:06 +00:00
  • 08618a4d74 Now that the server uses the new version, we can finish renaming DictionaryService to DictionaryManager. Robert Zubeck 2007-02-20 00:43:42 +00:00
  • 3dcf2a70a4 Renaming DictionaryService -> DictionaryManager, since a 'service' has a very specific meaning, and will be treated differently by wrapper generatin scripts. Robert Zubeck 2007-02-20 00:30:55 +00:00
  • fa7bf73ddc Moving host coordinator into vilya. Robert Zubeck 2007-02-19 23:21:28 +00:00
  • e8ada1ac88 Added setImmediate(), made it so that old un-recompiled games are essentially calling setImmediate() when they call set(), since set() used to be immediate. Ray Greenwell 2007-02-19 21:55:10 +00:00
  • 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.) Ray Greenwell 2007-02-19 21:12:43 +00:00
  • 83e02730cf Fixes for property setting via atomic test-and-set: Robert Zubeck 2007-02-19 19:40:09 +00:00
  • e21ad04665 A simple extensible tournament management framework Mark Johnson 2007-02-17 00:30:20 +00:00
  • 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. Robert Zubeck 2007-02-15 21:55:49 +00:00
  • 720a409185 playerIdx -> playerId Ray Greenwell 2007-02-15 01:53:17 +00:00
  • 2c89082a2e Bugfix: hadn't tested this with seated games. :) Ray Greenwell 2007-02-15 00:05:11 +00:00
  • ee871c3f2f Occupant events. Undocumented, I'm sure we'll change some things around soon. Fixed a few bugs, too. Ray Greenwell 2007-02-14 23:50:33 +00:00
  • c8ee960c0d Whoops! Forgot to wire one of the new functions up! Ray Greenwell 2007-02-14 03:45:12 +00:00
  • a8521ecb84 Use some of my acquired special knowledge. Ray Greenwell 2007-02-14 03:44:36 +00:00
  • 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. Ray Greenwell 2007-02-14 03:09:55 +00:00
  • 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! Ray Greenwell 2007-02-14 01:59:29 +00:00
  • 00e771e7a5 Updated the dictionary service, now with Real Functionality :) - loads language-specific dictionary files, and acually uses them for user queries. Robert Zubeck 2007-02-14 00:30:46 +00:00
  • 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 :). Robert Zubeck 2007-02-13 01:47:13 +00:00
  • 1de048c799 Made getGameType() public. Ray Greenwell 2007-02-13 01:22:03 +00:00
  • 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: Ray Greenwell 2007-02-13 00:50:29 +00:00
  • 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. Robert Zubeck 2007-02-12 23:32:37 +00:00
  • 7a36e3a858 Regenerated ActionScript listener marshallers. Michael Bayne 2007-02-12 21:52:20 +00:00
  • b63c756a1f Wrapped values are now automatically unwrapped at a lower layer. Ray Greenwell 2007-02-12 19:57:46 +00:00
  • 62808c9fc6 We got more sinkin' up to do man. Yeah man, it's mighty groovy. Michael Bayne 2007-02-11 03:33:04 +00:00
  • 75b34c6bf6 New service group world order. My enthusiasm for widening is being stretched. Michael Bayne 2007-02-11 01:37:46 +00:00
  • 61d8f478e1 Removed debug that slipped in. Ray Greenwell 2007-02-10 20:56:07 +00:00
  • f9dcdd0627 Have the TableDirector place a party game creator in the game, rather than forcing them from the server. Ray Greenwell 2007-02-10 20:53:05 +00:00
  • 3a387c7d8a - Start party games immediately. - Validate users differently for party games. Ray Greenwell 2007-02-10 03:33:51 +00:00