Commit Graph

  • 743ff2bbbc Clear out played card fields when they shouldn't be displayed. Andrzej Kapolka 2005-04-13 01:42:18 +00:00
  • d2b4be178a Moved rematch handling up the hierarchy, made Card constructor public in order to create specific cards for searching, etc. Andrzej Kapolka 2005-04-13 01:15:43 +00:00
  • 259870ee81 Reordered some imports. Eric Lundberg 2005-04-13 00:35:37 +00:00
  • b80eec3959 Don't let our max queue reporting drift a few ms every minute. Ray Greenwell 2005-04-12 19:04:39 +00:00
  • 09822e45c5 Don't log our channel in the normal case to avoid potentially triggering what I believe to be a race condition in SocketChannel.toString() (ultimately sun.nio.ch.Net.localAddress()) on FreeBSD. Michael Bayne 2005-04-12 18:09:17 +00:00
  • d1a19cc346 Don't report the first time, just set our next report stamp. Michael Bayne 2005-04-12 17:46:14 +00:00
  • 25b84d1ed6 Allow queue reporting to be activated programmatically. Fixed bug. Michael Bayne 2005-04-12 17:40:13 +00:00
  • 7c24e70523 Added code to track the largest event queue size and report it every minute if so instructed. Michael Bayne 2005-04-12 17:33:55 +00:00
  • 5507f1a857 Report long units in milliseconds. Michael Bayne 2005-04-12 17:16:58 +00:00
  • 966703a56a Fixed bug in raising only selectable card. Andrzej Kapolka 2005-04-12 03:43:56 +00:00
  • 7fd9b51cab First checkin for the great Spades refactor. Andrzej Kapolka 2005-04-12 02:50:17 +00:00
  • bc30a3f389 Handy constructors. Ted V 2005-04-12 01:09:57 +00:00
  • 4e07b63ce1 Added "is it my turn?" style function. Ted V 2005-04-11 23:50:29 +00:00
  • 0192a84739 Print out extra information when the strange "invalid argument" socket connect exception gets thrown. Ray Greenwell 2005-04-08 19:27:57 +00:00
  • d233a8f27e Log a warning if we fail to delete either the Getdown marker file or the bundle itself when wiping a bundle. Michael Bayne 2005-04-08 00:05:41 +00:00
  • fa2ad0fa6c Fixed two bugs with the messages related to shunned players. Ray Greenwell 2005-04-07 02:19:07 +00:00
  • 5539822fe2 Recommented out some old debugging. Michael Bayne 2005-04-04 22:41:40 +00:00
  • cead8612c7 Invalid table positions may also be too low. Ray Greenwell 2005-04-04 20:32:20 +00:00
  • 280df17e35 Made the clearOccupant methods maximally overrideable. Ray Greenwell 2005-04-04 20:07:24 +00:00
  • 7e63d1c859 Avoid using the AffineTransform font derivation mechanism on MacOS X where it is quite buggy. There are still issues with non-affine transformed fonts, but they are lesser. Michael Bayne 2005-04-01 22:33:42 +00:00
  • 916c50adaa Create the colorizer before we set the scene model as that will fire up the scene block resolver on a new thread which could, in theory, then request said colorizer before we got around to setting it. Michael Bayne 2005-04-01 17:03:23 +00:00
  • 302c6656e5 Migrated the scene viewer over to Stage, though Miso has one as well. Michael Bayne 2005-04-01 16:57:17 +00:00
  • 934a596bfa Don't ever leave the keys grabbed. Michael Bayne 2005-04-01 01:05:40 +00:00
  • c0430e3131 Revamped the config object editor system to make it easier to create custom editors for simple data types. Added a checkbox editor for boolean fields. Also switched the layout to the side as one is likely to accumulate many objects and allowed an object to be specified as the default. Michael Bayne 2005-04-01 00:03:58 +00:00
  • 1c0260198d The adding of portals to scenes needs to be handled somewhat differently now that all the scene updating stuff has been cleaned up. Basically we can't rely on the updating process itself to assign a portal id, updates must be created with all the information they need before they are applied to the scene. Michael Bayne 2005-03-31 19:40:55 +00:00
  • 31a1eb685a requestFocus() -> requestFocusInWindow() Ray Greenwell 2005-03-31 17:26:01 +00:00
  • d2325761ff But wait, there's more! You'll also get Streamability at NO EXTRA CHARGE! Supplies are limited, so act now! Ted V 2005-03-30 23:41:34 +00:00
  • 74ccc09a97 Get the pause font size from a method that can be overridden by subclasses. Andrzej Kapolka 2005-03-30 19:51:06 +00:00
  • 74800cbf15 Provide some default portal icon arrows. Michael Bayne 2005-03-30 03:08:24 +00:00
  • a9afc6d4c2 Stick the editor icon in the stage bundle. Michael Bayne 2005-03-30 03:06:17 +00:00
  • 4c23b6eb64 Oops, fixed missing bits. Michael Bayne 2005-03-30 03:01:35 +00:00
  • 5aba5ff57b Reorganized to be easily extensible. Michael Bayne 2005-03-30 02:59:03 +00:00
  • d3603cfdc4 We don't need the icon manager around these parts. Michael Bayne 2005-03-30 02:46:26 +00:00
  • 8135af3e4c Migrated the bulk of the scene editor into Stage. It's just lovely. Michael Bayne 2005-03-30 02:39:20 +00:00
  • 80609dbe81 Make the default tileset zero not El Magico Rando Numero Ocho. Michael Bayne 2005-03-30 02:37:45 +00:00
  • afa995ebb9 Finally broke down and changed createPlaceView() to eliminate the annoying potential fuckola of being called before the controller gets around to initializing the casted context it almost certainly needs to create its place view. Michael Bayne 2005-03-30 01:09:30 +00:00
  • 2299e6a1de More Stage bits. Michael Bayne 2005-03-30 00:44:03 +00:00
  • 0bf43bc2e8 Step two in the great Stage refactor. I don't know how many steps will be needed all told, but I like to see the number keep going up. Michael Bayne 2005-03-29 23:18:59 +00:00
  • d60445e16b Better error reporting. Michael Bayne 2005-03-29 23:18:00 +00:00
  • a62f9621b2 Step one in the fun and exciting extraction of our Miso + Whirled + Cast juicy goodness into something reusable by SOY. Michael Bayne 2005-03-29 20:12:34 +00:00
  • e47f950695 Some fixes to get the old miso viewer running. Michael Bayne 2005-03-29 19:12:40 +00:00
  • be8a755dad The generic set updaters weren't working because proguard renamed the methods they were looking for. Ray Greenwell 2005-03-28 22:31:46 +00:00
  • a4ac47fb04 Reinstated the Presents I/O refactor with the modification of ensuring that authentication is processed on the dobjmgr thread rather than requiring the caller to do the right thing (or not as the case happened to be). Michael Bayne 2005-03-28 21:49:19 +00:00
  • d58d1001ac Roll it all back. Ray Greenwell 2005-03-28 19:33:28 +00:00
  • 36af272a63 Bad idea. Ray Greenwell 2005-03-28 19:32:48 +00:00
  • f6e427a26d Bugfix? Ray Greenwell 2005-03-28 19:23:26 +00:00
  • 5290ab7c1d Pass the mode to the speaker validator. Ray Greenwell 2005-03-27 20:16:59 +00:00
  • 771842edf4 Allow the current alpha value to be obtained. Michael Bayne 2005-03-24 05:11:16 +00:00
  • 5544701e5a Let our caller know if our fade level actually changed. Michael Bayne 2005-03-24 04:50:52 +00:00
  • d54c776527 Factored the fade effect out into a separate effect class so that it can be used by sprites and animations. Ray is now thinking, "Why do we have this wacky difference between sprites and animations?" but changing it now would be a massive amount of typing that I'm not super interested in doing. In any case factoring out the "effects" into separate classes is still useful because frequently one wants to combine them in crazy ways that would not be possible with a FadeSprite or FadeAnimation. Michael Bayne 2005-03-24 04:36:33 +00:00
  • cd729458f4 Factored FadeAnimation into something that can be extended to fade different things in. Created FadeImage and FadeLabel derivations. Michael Bayne 2005-03-24 04:18:24 +00:00
  • 6e947f0238 Added support for antialiased label sprites. Michael Bayne 2005-03-24 02:32:04 +00:00
  • 1d4d9fe2ba Check for null puzzle object. Andrzej Kapolka 2005-03-24 00:46:28 +00:00
  • 1da2e7cc0e Call mark() on the audio input stream because that creates some sort of push-back buffer that prevents sounds from blarching when we reset the stream. Michael Bayne 2005-03-23 20:57:38 +00:00
  • 4bfbb96dfe We need to override hashCode() and equals() because the default implementations do a fucking DNS lookup on the host of the URL. The degree to which that violates expectations about the "expense" of calling hashCode() is so astronomical as to be unexpressible without complicated metaphor. Michael Bayne 2005-03-23 01:56:54 +00:00
  • 32a42047dc Ignore non-existent bodies when players knocked out. Andrzej Kapolka 2005-03-22 03:11:07 +00:00
  • a285695ca8 I finally broke down and did the rewrite to fix the potential race condition between the omgr thread and the conmgr thread. Now when the omgr thread processes an event that is going out to the clients, it flattents the message itself for each client that is to receive the message and the flattened data is posted to the conmgr outgoing queue. Michael Bayne 2005-03-19 08:39:19 +00:00
  • 0e2f51b91f Recreate our shutdowner list when we re-init() so that we don't end up freaking out in standalone mode where the server is started, and shutdown and started again repeatedly. Michael Bayne 2005-03-19 00:30:27 +00:00
  • 74ff1f6fc5 No permissions are needed to load *any* resource from a resource bundle. Ray Greenwell 2005-03-19 00:17:58 +00:00
  • 9434b6e9bc Just use a volatile variable and do away with the synchronization, at Mr. Greenwell's suggestion. Michael Bayne 2005-03-18 19:26:11 +00:00
  • 9682983526 We can't rely on the connection manager not being shutdown to determine whether or not we're already shutdown as it may have shutdown unexpectedly. Michael Bayne 2005-03-18 19:08:18 +00:00
  • 77f9d8836c Allow a connection manager shutdown hook to be registered. Michael Bayne 2005-03-18 19:00:01 +00:00
  • 67087dbda2 Forgot an argument. Michael Bayne 2005-03-18 01:13:09 +00:00
  • f00cbd2b3b Allow outline images to be created without an image manager. Michael Bayne 2005-03-17 21:46:43 +00:00
  • 8b79e57179 Moved AStarPathUtil into media from miso (it has nothing to do with isometric rendering) and modified it to allow it to consider different potential move sets than just moving by one in the eight cardinal directions. Michael Bayne 2005-03-17 07:36:47 +00:00
  • 60c589be4d Arg. I can't change this or no one will be able to get the "failed" response telling them to upgrade. Note to self, do the thing where the server immediately writes the version number to the auth stream so that we don't have to worry about this sort of legacy crap. Michael Bayne 2005-03-15 22:39:19 +00:00
  • 2f24fdb449 Truncate the text of the long message. We can figure out what it is from the first 80 characters if this every actually discovers an anomaly rather than just dutifully reporting every time someone updates really lengthy crew news. Michael Bayne 2005-03-15 17:08:55 +00:00
  • 0bd239c74c Added a version of getDirection() that works directly with doubles. Michael Bayne 2005-03-15 07:58:28 +00:00
  • b58c1a3cf4 Added a version of distance that doesn't do the square root. Michael Bayne 2005-03-15 07:58:06 +00:00
  • 2d19a0ba82 Renamed DSet.entries() -> DSet.iterator(). Michael Bayne 2005-03-15 02:12:03 +00:00
  • 12b267dbae One day we hope to implement Iterable, let's implement the standard 'iterator()' name and deprecate the old 'entries()' method. Ray Greenwell 2005-03-15 01:40:22 +00:00
  • e018791a80 No need for these classes to extend DObject, that's weird. Michael Bayne 2005-03-15 00:46:01 +00:00
  • d62b0dfdbb Missed another serialization spot. Michael Bayne 2005-03-14 23:58:02 +00:00
  • b97d9ac7c3 Not to booch when serialized and then dead-code removed. Michael Bayne 2005-03-14 23:53:36 +00:00
  • f2a9f7ed0d Further AI handling improvements. Michael Bayne 2005-03-12 10:08:02 +00:00
  • 787d4f1fe5 Allow AI configuration to be specified in the GameConfig and automatically put into place before the game starts. Michael Bayne 2005-03-12 07:46:34 +00:00
  • fb53600e92 Revamped the way AI configuration is specified to be more extensible. Michael Bayne 2005-03-12 07:37:34 +00:00
  • b4e595bd3c Prevent infinite loops if there is no qualified player to become the new turn holder. Log a warning. This is how we do things here. Ray Greenwell 2005-03-11 22:14:23 +00:00
  • 3549b9cdaf Do not require the playerStatus field to be initialized. If someone wants to write a simple board game for gamegardens, they shouldn't have to explicitly set up an array indicating that all the players are active (or worse, waste 45 minutes tracking down why the game is freezing up suddenly). Ray Greenwell 2005-03-11 22:10:27 +00:00
  • fade675350 Allow resource urls that have a blank resource set specified to load resources to load from the default sets. (A normal url would be "resource://<set>/<path>", one using the default set would be "resource:///<path>". Goofy.) Ray Greenwell 2005-03-11 22:08:09 +00:00
  • 730234b5a5 Made dispatchMessage public. Andrzej Kapolka 2005-03-10 22:29:05 +00:00
  • 8445f3c7f2 Removed extra comma. Ray Greenwell 2005-03-10 02:13:05 +00:00
  • ad1edd6e69 Added standalone flag and special standalone logoff method to Client, options to BasicDirector to hold off on initializing directors not needed for standalone mode. Andrzej Kapolka 2005-03-10 02:06:43 +00:00
  • fea80fdb2b Changed the tileset cache to use soft references. We want the cache because we'd like to use the same TileSet over again when possible, but we don't want to forevermore hold onto a TileSet if it could be gc'd. Ray Greenwell 2005-03-10 01:30:34 +00:00
  • 51e8ef3687 Yeah, it does need the !. Ted V 2005-03-10 00:16:13 +00:00
  • 08cc800694 Turn/GameManager now supports interface for checking whether a player is still actively playing the game. The delegate now uses this when incrementing turns to skip over players not a part of the game (rather than needing this same code in the derived classes). Ted V 2005-03-10 00:13:25 +00:00
  • bb83bacdab Rather than keep a reference to an instance of a custom anonymous class for an error icon, just whip one up on the fly when needed (almost never). Ray Greenwell 2005-03-09 23:20:37 +00:00
  • b07d3821fd Use an LRU cache for our config properties files. Ray Greenwell 2005-03-09 23:19:01 +00:00
  • fbbaf7c64a Got rid of the "occupant cache" which was used to provide the previous value to observers when an OccupantInfo was updated or removed. This functionality is now built-in to the dobj system, so just use getOldEntry() on those two events. Ray Greenwell 2005-03-09 23:15:02 +00:00
  • 94bf03ec9d Moved player status tracking and in/out of game status from puzzles to games. Updated the PLAYER_KNOCKED_OUT variable name to prevent some namespace contention issues. Ted V 2005-03-09 22:52:03 +00:00
  • c36ebdc8d4 A-ha, found the further source of the walk-on-water bug, which is that if you had logged on to one ocean and then moved to another, the previous ocean's sceneIds are still in the scene cache. Ray Greenwell 2005-03-09 22:06:38 +00:00
  • 44502d01e8 We need to do the property file inheritance processing when loading the sounds.properties lest we lose the needed info specified in the parent properties files. Michael Bayne 2005-03-07 20:06:55 +00:00
  • e75e1918b1 Disarm buttons on mouse-release to avoid sticky buttons in spades. Andrzej Kapolka 2005-03-04 22:25:27 +00:00
  • 924363a8a6 Further refactoring into client, data and server. Michael Bayne 2005-03-03 19:55:35 +00:00
  • dbbd8e955f Decided to take the pain and refactor the parlor.game and parlor.turn packages properly into client, data and server subpackages. This eliminates a bunch of hackery I had to do to properly handle dead code removal when building the Game Gardens client and games and it simplifies things and sets a good example to follow the standard procedure as much as possible. Michael Bayne 2005-03-03 19:36:34 +00:00
  • c2e2661e66 Further refinement of the permissions system. Eliminated the CommunicationAuthorizer and rolled that into the BodyObject-based permissions system. A victory for consolidation and elegance. Michael Bayne 2005-03-03 04:47:57 +00:00
  • bc837ca289 The plot thickens. The resource manager prepends "rsrc/" to anything it loads, but the sound manager wants to load things directly from the classpath, so we need to allow it to use the classpath that the resource manager was configured with to ensure that it did the right thing. Michael Bayne 2005-03-02 04:35:43 +00:00
  • 91f936d147 Need to tack the .properties on by hand when we're loading in this manner. Michael Bayne 2005-03-02 04:28:41 +00:00
  • f4343be20d Load the sound properties via the ResourceManager which will do the right classpath magic to work with Game Gardens. Michael Bayne 2005-03-02 04:11:51 +00:00
  • ce0db63b27 Added a constructor to not specify a default sound. Ray Greenwell 2005-03-02 04:10:01 +00:00