Commit Graph

  • c4c8e2297b Added the notion of a round with an associated round identifier that is incremented whenever the game is reset. Games that don't make use of the resetting functionality essentially consist of a single round. Walter Korman 2002-06-03 21:08:57 +00:00
  • bce33033d8 removed setRateGame() Ray Greenwell 2002-06-01 23:14:53 +00:00
  • b900adeeeb Moved in the setRateGame() method from PuzzleManager; have it set the rated flag in the gameconfig. Ray Greenwell 2002-06-01 21:21:20 +00:00
  • 7d9dc465a0 Updated debugging output. Michael Bayne 2002-05-31 22:14:44 +00:00
  • eb04dd7ea4 Added a method which can be used to determine if an object is currently part of a transaction. Michael Bayne 2002-05-31 20:47:55 +00:00
  • 2740e670cb Modified LinePath so that separate time stamps are kept for the x and y directions, otherwise movement in one direction will unnecessarily reset the "move stamp" for the other direction in which we didn't actually move. Michael Bayne 2002-05-31 20:47:32 +00:00
  • af28864778 New interface related to repackaged path stuff. Michael Bayne 2002-05-31 07:34:45 +00:00
  • eb8e85c503 Test new path-scrolled media panel. Michael Bayne 2002-05-31 07:34:23 +00:00
  • 844b0672f9 Reference path stuff in new package. Michael Bayne 2002-05-31 07:34:11 +00:00
  • 823de4a1a0 Added means by which a view can be scrolled to follow a path. Michael Bayne 2002-05-31 07:33:52 +00:00
  • 3261cff412 Removed debug logging. Michael Bayne 2002-05-31 07:33:33 +00:00
  • ccbc47a7de Separated path code from sprite code so that we can have other things follow a path (specifically, I want to allow the media panel to be "scrolled" along a path). Michael Bayne 2002-05-31 03:38:03 +00:00
  • f448ebe4f1 Create the polygon cache hash with custom parameters to the constructor to optimize memory performance. Ray Greenwell 2002-05-30 22:21:51 +00:00
  • 7c4f86e63a pathBeginning() and pathCompleted() need to be public so that we can create paths outside the media.sprite package. Michael Bayne 2002-05-29 23:27:14 +00:00
  • e00610ecdb Ensure that we're loading our images through a BufferedInputStream. Michael Bayne 2002-05-29 18:45:00 +00:00
  • 3ff72e8a58 Fixed typo in comment. Michael Bayne 2002-05-29 18:44:36 +00:00
  • 587e89ef24 Created services for distributing delta times over the network which are interpreted according to a globally established base time. Michael Bayne 2002-05-28 23:14:06 +00:00
  • 9b88def20b Took out the server ticks business because we're going to do delta times in a more general purpose manner. Michael Bayne 2002-05-28 22:54:43 +00:00
  • 27866e0541 Moved configuration fiddling into config object. Michael Bayne 2002-05-28 22:25:44 +00:00
  • fc0300d80d Removed debug logging. Michael Bayne 2002-05-28 22:07:13 +00:00
  • 1492561985 Whoops, had that backwards. Michael Bayne 2002-05-28 22:06:05 +00:00
  • 2168067c74 Debug logging cleanup. Michael Bayne 2002-05-28 22:05:52 +00:00
  • 2f1a67077a Added code to establish the time delta between the client and server clocks immediately following authentication. Michael Bayne 2002-05-28 21:56:38 +00:00
  • f9980f9353 Edits and notes on client/server time sync. Michael Bayne 2002-05-28 21:56:07 +00:00
  • f0d7b8642b Need to ensure that we don't claim that the communicator is gone until after both the reader and writer have exited (otherwise the reader could exit before the writer which would result in the client chucking its reference to the communicator which could subsequently bite us in the ass if anyone tried to reference the client's distributed object manager when the writer finally exited and triggered all of the clientDidLogoff callbacks). Multithreaded programming is fun! Michael Bayne 2002-05-27 01:37:07 +00:00
  • 0ce79473fb Whoops, forgot to register the scene and zone directors as invocation receivers. Michael Bayne 2002-05-26 02:35:02 +00:00
  • d0e1722083 Oh yeah, moveBody() needs to be static. Michael Bayne 2002-05-26 02:29:13 +00:00
  • 97197d49cc Added support for initiating a place/scene/zone transition from the server; chat director no longer needs to wait until we're logged on to register itself with the invocation director. Michael Bayne 2002-05-26 02:24:46 +00:00
  • 8a7a046df8 Modified safe interval to use IntervalManager services because there's a single instance of the IntervalManager unlike the standard Java Timer services which would require someone to have a timer instance to do the scheduling of our safe intervals. Plus Ray will be much happier now that the SafeInterval is not so flippant about reusing methods. Michael Bayne 2002-05-24 21:38:24 +00:00
  • 989a9867e0 Created a convenience class for executing code on the dobjmgr thread via the standard Java timer services. Michael Bayne 2002-05-24 21:03:15 +00:00
  • b07fbe123b Added mechanism for fetching resource strings that doesn't complain when they don't exist. Michael Bayne 2002-05-24 20:33:30 +00:00
  • fe645cf2b7 typofix Ray Greenwell 2002-05-24 20:32:11 +00:00
  • 984fa75229 made getIsoDirection() and getProjectedIsoDirection() more accurate. Ray Greenwell 2002-05-24 20:15:04 +00:00
  • 16d4bfabca Demoted some log messages to debug. Michael Bayne 2002-05-24 05:58:55 +00:00
  • 86a9d88ed8 Clear out our scene when the client logs off. Walter Korman 2002-05-22 21:48:44 +00:00
  • ed25692d93 Deal gracefully with moving to a non-existent location. Walter Korman 2002-05-22 21:47:14 +00:00
  • b4982af8bc Clear out our location and inform observers that Elvis has left the building when the client logs off. Use an ObserverList. Expanded imports. Walter Korman 2002-05-22 21:46:53 +00:00
  • 3bc46992bf Set a flag to note whether we're paused and check the flag to avoid ticking when paused rather than un-registering and re-registering ourselves as a frame participant to effect same. Walter Korman 2002-05-22 01:56:25 +00:00
  • cd9131c551 Use an ObserverList to store and work with the frame participants. Walter Korman 2002-05-22 01:48:08 +00:00
  • 4acd5fcfdd Added convenience class for observing animations and being notified when each individual animation completes and when all added animations have completed. Walter Korman 2002-05-21 17:59:11 +00:00
  • 9d1b8a664c Minor fixups to get things running (and to get Atlantissonne working as a JWS app, whee!). Michael Bayne 2002-05-21 04:47:48 +00:00
  • c4bc5fb292 No need to prefix things now. Michael Bayne 2002-05-21 04:46:44 +00:00
  • 5e273ce72e Made the logoff command a constant. Walter Korman 2002-05-17 21:22:46 +00:00
  • 325433a763 Created a path that follows a single straight line and does so using the same math that the scrolling code does to scroll in a straight line. Michael Bayne 2002-05-17 21:14:06 +00:00
  • 814bd71637 Moved getDirection() into DirectionUtil. Michael Bayne 2002-05-17 21:13:26 +00:00
  • a8caf98434 Added a version of distance() that takes Point objects. Michael Bayne 2002-05-17 21:13:03 +00:00
  • db31cedbd8 Removed setVelocity() from the interface. Paths may or may not want to use the notion of velocity and they can expose that interface to whomever creates them. We don't need to set the velocity in the abstract. Michael Bayne 2002-05-17 21:12:48 +00:00
  • 9bb8f1b524 Moved routines to calculate orientation from point a toward point b into DirectionUtil. Michael Bayne 2002-05-17 21:12:14 +00:00
  • ee9ff7d46b Enhanced debug logging. Michael Bayne 2002-05-17 21:11:34 +00:00
  • 193cffe8ea Don't freak out if a base tile is null: now all the off-screen base tiles are null... Ray Greenwell 2002-05-17 19:07:47 +00:00
  • 0c664ce9b7 Use the new accessor methods for getting base tile ids from the model. Ray Greenwell 2002-05-17 19:07:04 +00:00
  • bb6b0f56ca Changed MisoSceneModel so that it knows about the view width and height. It no longer stores base tiles that are not visable in the view, in fact it stores the base tiles in an array almost half the size as the fully expanded scene array, and this new smaller array is used everywhere: when saving the scene, serializing it to the user, or saving it in the database. We must now use the getBaseTile() and setBaseTile() methods to access the base tiles because they are stored in this compressed format. Also removed the fringe layer completely from the MisoSceneModel. Ray Greenwell 2002-05-17 19:06:23 +00:00
  • ab242f4a71 Fixed javadoc typo. Walter Korman 2002-05-16 18:17:27 +00:00
  • 7ba2173174 Fixed bug whereby byte buffer that held scene data was still big enough to accomodate the fringe layer and the way the ByteBuffer stuff works, it writes out the whole enchilada even if there are a bunch of zeros at the end. Michael Bayne 2002-05-16 03:54:18 +00:00
  • 95daba5bee Offset not Offsets. Michael Bayne 2002-05-16 03:00:29 +00:00
  • 612166a572 Created an Icon implementation that can be used to render sprites anywhere that icons can be rendered. Michael Bayne 2002-05-16 02:58:59 +00:00
  • b63c2aeeba never output the fringe layer. Ray Greenwell 2002-05-16 02:25:19 +00:00
  • 9a55ae3989 oops: removed leftover debugging Ray Greenwell 2002-05-16 01:53:36 +00:00
  • 0dc1f378e5 use the standard hitTest utility method. Ray Greenwell 2002-05-16 01:49:38 +00:00
  • b15d38b54d Relegated a shitload of logging to DEBUG status. Michael Bayne 2002-05-15 23:54:35 +00:00
  • a52d62d532 Modified ActionFrames because having it implement MultiFrameImage and just "remember" which orientation it should be doing was not working out because multiple sprites can share the same action frames and they would step on one anothers' toes. Michael Bayne 2002-05-15 23:54:05 +00:00
  • 14e2166194 Added an applyToDelegates() that restricts its application to delegates that derive from a particular class. Michael Bayne 2002-05-13 23:03:24 +00:00
  • 70c8067048 Don't consider modes with higher than 75Hz refresh. Michael Bayne 2002-05-09 18:43:56 +00:00
  • 78ec4ab84b Temporary ship recolorizations. Michael Bayne 2002-05-09 18:43:32 +00:00
  • 34f9f3d8c6 Leave the images in 8-bit format when we return them from the tileset bundle so that we can recolor them if we later desire. Michael Bayne 2002-05-09 16:51:26 +00:00
  • 2739abf915 Support compositing images that haven't already been expanded into separate rasters. Michael Bayne 2002-05-09 16:49:16 +00:00
  • 609c6939da Minor formatting edits that occurred in the course of debugging. Michael Bayne 2002-05-09 16:48:34 +00:00
  • 8ad4c1abea Dooh! Graphics not Graphics2D. Michael Bayne 2002-05-09 16:47:48 +00:00
  • bd6146292f Restore the original clip only after we've un-translated the graphics context. Minor reformatting and enhanced toString(). Walter Korman 2002-05-09 04:42:10 +00:00
  • 441e21d08c Pack the main frame to fit its components rather than referencing width and height property values. Walter Korman 2002-05-09 04:39:12 +00:00
  • eb270593d1 Need to trim whitespace from the project jar files. Walter Korman 2002-05-08 23:04:07 +00:00
  • f0ebe247e4 Fixed javadoc typo. Walter Korman 2002-05-08 21:15:26 +00:00
  • 7a7309f347 Make the tiler cope if it's given a null source image. Michael Bayne 2002-05-07 03:23:46 +00:00
  • 04a1b4a38a Created a helper class that can be used to render a tiled background image that is generated by cutting up a small image into nine sections and using each appropriately to create the expanded background. Michael Bayne 2002-05-07 03:11:17 +00:00
  • 18c4c32c85 Whoops, I booched it. Michael Bayne 2002-05-07 00:57:49 +00:00
  • ac31caa28b Added support for centering the media panel on a region of interest when it is displaying in a space smaller than its desired view size. Michael Bayne 2002-05-07 00:53:56 +00:00
  • 581a2cce44 Don't choke if we're asked about game over and we've already shut down and pitched our game object. Michael Bayne 2002-05-07 00:49:24 +00:00
  • 6dcdba4540 Added toString() to records; report which record we're failing to add when such things happen. Michael Bayne 2002-05-07 00:05:02 +00:00
  • 181fa3269d Only update ourselves in halt() if we actually stopped something. Michael Bayne 2002-05-06 23:24:15 +00:00
  • 320706e857 Do our recoloring in one fell swoop. Michael Bayne 2002-05-06 23:23:27 +00:00
  • 8063347815 Modified image recoloring to use Colorization objects since they now live in the same package. Also added support for applying a set of recolorizations all at once so that previous recolorings aren't borked by subsequent recolorings (plus it's more efficient). Michael Bayne 2002-05-06 23:23:08 +00:00
  • 99c4330646 The vast and the sweeping. Modified the tile framework such that tiles no longer provide access to their underlying image (they actually still do, but not in the normal course of affairs). This will allow us to use "trimmed" tiles which are trimmed to the smallest rectangle that contains the non-transparent pixels in a tile image, which will shrink up our components and other tiles a great deal. Michael Bayne 2002-05-06 18:08:32 +00:00
  • 1c182d6e36 this line should have been commented out too Ray Greenwell 2002-05-04 21:36:32 +00:00
  • 2e46950ef0 Message bundles are init()ed now rather than constructed with their desired arguments. Michael Bayne 2002-05-04 19:39:27 +00:00
  • 37a1167fb5 Revamped component action animation support so that we're not passing around arrays of multi-frame images but instead pass around one object that knows how to render any action frame in any orientation. This apparently fixed some horrible bug that we had introduced in doing JITC and now the whole thing is super fast, just like I always thought it would be. Once we introduce trimmed images, it will blaze! Michael Bayne 2002-05-04 19:38:14 +00:00
  • 47e38b4fa8 Changed MultiFrameImage around so that it retains total control over its internal images and doesn't necessarily need to decode them into multiple images or even have actual images at all. This cleans things up and paves the way for our "trimmed" image support which is forthcoming. Michael Bayne 2002-05-04 19:35:31 +00:00
  • 0492637aa0 Moved hitTest() into ImageUtil where its accessible to all that need it. Michael Bayne 2002-05-04 19:34:14 +00:00
  • 554fb9e249 First pass at just in time compositing (JITC!). Things aren't quite as fast as I'd have hoped, but I'm optimistic that the image compression business that Walter and I are embarking upon will solve that handily. Michael Bayne 2002-05-04 06:57:24 +00:00
  • 33eb11b8f6 Fixed yet another bug with the Swing rendering code: apparently the JEditorPane, when displaying HTML that contains forms, pointlessly wraps its Swing components in heavy weight AWT components which would otherwise trigger some funny business that we don't want it to trigger. Michael Bayne 2002-05-04 05:13:54 +00:00
  • d43442b3dd Changed debug logging so that it is easier to enable and disable since I seem to be debugging the fucking rendering every other day. Fixed bug with dirty region combining. Michael Bayne 2002-05-04 03:09:46 +00:00
  • cdb20c8389 No longer need to disable lightweight popups. Yay! Michael Bayne 2002-05-03 04:17:25 +00:00
  • a98f5f617a Yet more rendering fixes: we render the frame participants before the dirty Swing components and we go through and specifically render any components in the upper layers (see JLayeredPane for what this means) that overlap our frame participants every frame. This is non-optimal, but the hairy code that somehow magically works out who to repaint when components overlap is not even something that I want to dig more deeply into. There are generally not many components in the upper layers (only popups like menus and tooltips and internal frames when we use them). Michael Bayne 2002-05-03 04:16:41 +00:00
  • 4da9a66c1d Fixed more repaint bugs. We weren't properly painting the opaque component when doing old-skool rendering. We also needed to climb up the hierarchy looking to see if a parent is dirty for each dirty component and combine the child and parent dirty rects and only repaint the parent otherwise we can run into problems with render order. Oh the complexity (though Swing does this too). Michael Bayne 2002-05-03 04:14:20 +00:00
  • 2005f22000 Moved fringing code into base display miso scene and added code to fringe a scene when it is first displayed. Michael Bayne 2002-05-03 04:12:48 +00:00
  • ccf0dca140 Don't issue an ALREADY_THERE response if a user requests to move to a zone they already occupy. When a client logs on after a disconnect, it needs to do a zoned moveTo request to get back to where it was because it doesn't have the zone summary and associated good stuff. Michael Bayne 2002-05-03 00:00:17 +00:00
  • 9abf440dde If the client asks to move to the location they're already in, just go along with them rather than sticking a fork in the program. Michael Bayne 2002-05-02 21:19:28 +00:00
  • c15f763ba0 It's a feature! Michael Bayne 2002-05-02 19:34:51 +00:00
  • 9503d37d90 added getResourceString() which actually gets the business from the ResourceBundle, making this class easy to extend... Ray Greenwell 2002-05-01 03:39:13 +00:00
  • e13f354672 Oops, forgot that ResourceBundle throws a MissingResourceException rather than returning null. Whee! Michael Bayne 2002-05-01 02:47:18 +00:00
  • 3f91aed3aa Added code to allow the creation of custom message bundles to go along with a particular bundle's translation files. Mainly so Ray can do his funny business with the pirate message translations. Michael Bayne 2002-05-01 02:45:00 +00:00