Commit Graph

  • c6d2529e78 It doesn't get much simpler than this: objects that desire to be streamable and that don't have funky requirements can simply extend SimpleStreamableObject and magically have their public fields streamed for them as well as have a useful default implementation of toString(). My tired fingers are thanking me already. Michael Bayne 2002-02-02 08:48:03 +00:00
  • cf536acc3e Add code to MisoSceneModel parser that handles the situation where a scene with a single object that has no action string gets parsed as a scene with zero action strings instead of a scene with a single empty action string. Michael Bayne 2002-02-02 01:32:18 +00:00
  • e351a54dec Moved miso.tools.scene into miso.scene.tools and same with miso.tools.tile. Michael Bayne 2002-02-02 01:09:53 +00:00
  • 373436429d Need to create a hash map for our marshaller cache. Michael Bayne 2002-02-02 01:07:20 +00:00
  • c1dcc614f7 Clean up marshalling a bit. Michael Bayne 2002-02-01 23:43:45 +00:00
  • b7913ceb0b Moved generic marshalling code into presents.io from presents.dobj.io as it is now general purpose. Michael Bayne 2002-02-01 23:32:37 +00:00
  • ef9e0bc53f Modified field marshalling code to work on any object rather than being DObject specific (because it didn't need to be). Michael Bayne 2002-02-01 23:26:49 +00:00
  • d925c5d1b4 Cause transient fields to be ignored in the DObject marshalling process. Michael Bayne 2002-02-01 22:35:06 +00:00
  • a63692e7b3 Javadoc fixes. Walter Korman 2002-01-31 17:43:57 +00:00
  • ffdff82b42 Added setStartTime() to allow synchronizing multiple fade animations to the same starting time. Constrain the alpha to a valid range before getting the composite object. Walter Korman 2002-01-31 17:35:41 +00:00
  • 04ab7fe8c1 Added support for expiring an explode animation after a set time delay. Walter Korman 2002-01-31 17:34:20 +00:00
  • 6890624b6b Replaced sample scenes with two in the new format. Michael Bayne 2002-01-31 02:58:36 +00:00
  • 71c7c4bdb2 Added getScene() and getHoverCoords(). Michael Bayne 2002-01-31 02:53:29 +00:00
  • 899523d8b6 Removed debug logging. Michael Bayne 2002-01-31 02:12:35 +00:00
  • 4143fbf383 Set the default to never highlight objects. Michael Bayne 2002-01-31 02:10:36 +00:00
  • cc045d3fe3 Got object tile highlighting working. Now the IsoSceneView correctly keeps track of the front-most object that the mouse is over. Michael Bayne 2002-01-31 02:10:00 +00:00
  • f1f4e9c59a Added hitTest() which determines whether or not a point touches a non-transparent pixel in an object's image. Michael Bayne 2002-01-31 02:08:52 +00:00
  • 0b78324abf Beginnings of support for the scene view to track the object (sprite or object tile) over which the mouse is hovering. The iso scene view will also support highlighting the object tile over which the mouse is hovering as well as base tile highlighting to make the editor's life easier. Michael Bayne 2002-01-31 01:07:02 +00:00
  • 02f7b90a67 Avoid some extra array allocation and fiddling if we've got zero or one items in our dirty item list. No need for sorting and copying in such cases. Michael Bayne 2002-01-31 01:04:54 +00:00
  • 65900ecefa Added getHitSprites() which populates a list with the sprites that are "hit" by a particular pixel as determined by Sprite.hitTest(). Michael Bayne 2002-01-31 01:04:13 +00:00
  • c80ddcee22 Added hit test which checks first to see if a pixel is in a sprite's bounding box and then checks to see that the pixel in question is occupied by a non-transparent pixel in the sprite's image. Michael Bayne 2002-01-31 01:03:45 +00:00
  • cf598ed396 render() takes a Graphics2D now. Michael Bayne 2002-01-31 01:02:37 +00:00
  • 80c9550a57 Added some debugging, but commented it out. Michael Bayne 2002-01-30 18:30:43 +00:00
  • a07282b2d2 Added support for associating an action with any of the object tiles in the scene. This will eventually be interpreted by the scene rendering code to allow objects to be clickable. Michael Bayne 2002-01-30 18:28:32 +00:00
  • 617d0e8cb0 Initial revision of localization support classes. Michael Bayne 2002-01-29 20:44:35 +00:00
  • 93d36a81ef Moved ZoneUtil from whirled.zone.server.util to whirled.zone.util because we need to use it on the client. This will necessitate some CVS jockeying because the server/util directory no longer exists in the repository. Michael Bayne 2002-01-29 02:05:49 +00:00
  • 61730287ca Added code for marshalling arrays of streamables. Michael Bayne 2002-01-23 18:01:19 +00:00
  • 5510400f45 Pass a Graphics2D to AnimatedPanel.render() so that sub-classes needn't explicitly typecast it on their own, as they are almost invariably wont to do. Walter Korman 2002-01-23 17:10:41 +00:00
  • d6b17cd36c Reduced the specificity of the object detailing the bounds within which to render sprites to a Shape rather than a Polygon. Walter Korman 2002-01-22 20:09:02 +00:00
  • 651ff37b66 Javadoc edits. Walter Korman 2002-01-22 18:58:52 +00:00
  • 606fe42305 Updated to reflect keyboard manager modifications. Walter Korman 2002-01-22 18:11:33 +00:00
  • 6a5e8cd82b Added standard ACCESS_DENIED code. Michael Bayne 2002-01-22 02:50:36 +00:00
  • ec192b88d3 Added back overridden update() because Canvas.update() clears its whole self when update is called which is seriously undesirable. Michael Bayne 2002-01-19 07:09:55 +00:00
  • bcd203d045 No longer need to create our animation manager. Michael Bayne 2002-01-19 07:04:46 +00:00
  • c03126153d Automatically create an animation manager for the animated panel; modified the code that interacts with AWT repaint mechanisms to play nicely and communicate AWT's repaint desires to the animation manager to be queued up with our normal repainting. Michael Bayne 2002-01-19 07:04:28 +00:00
  • 408b3b6cb4 Make sure we have a sprite manager before talking to it. Michael Bayne 2002-01-19 07:01:19 +00:00
  • df0ec942bd Added ability to construct animation manager without sprite manager and then provide the reference later. Michael Bayne 2002-01-19 07:00:40 +00:00
  • 4653b0b0a7 Absorb key-typed events and be more cautious about when to dispatch key events. Walter Korman 2002-01-19 06:07:20 +00:00
  • 5366ae4ca3 Allow rendering explosion chunks with either image portions or rectangles of a specified color. Walter Korman 2002-01-19 06:06:05 +00:00
  • a0a1a48057 Have to separately alloc and init now. Michael Bayne 2002-01-19 04:16:02 +00:00
  • c6b0638e9e Apparently, we need an explicit protected constructor in the client context impl inner class. Michael Bayne 2002-01-19 04:15:25 +00:00
  • ef9c12672e Restructured MiCasaClient such that it could be extended for games that need a custom (extended) client context. Michael Bayne 2002-01-19 04:02:11 +00:00
  • e2fbfdf38c Reworked focus handling so that the keyboard manager only loses focus when (a) the target component is removed, or (b) the window containing the target component loses focus. Moreover, the keyboard manager now steals keys from any other components (explicitly irrespective of the AWT or Swing notion of keyboard focus) via the KeyboardFocusManager as long as it's enabled and has the focus as previously defined. Walter Korman 2002-01-19 01:19:56 +00:00
  • 2f4ef45546 Initial version. Walter Korman 2002-01-18 23:58:27 +00:00
  • 0f27719f0e Repackaged keyboard manager related classes for their new location in com.threerings.util. Moved RobotPlayer into util package from yohoho. Walter Korman 2002-01-18 23:32:15 +00:00
  • bbce846874 Whitespace changes. Walter Korman 2002-01-18 23:12:09 +00:00
  • 8393055218 Changed default transparency of blank images to BITMASK rather than TRANSLUCENT since that's what we prefer. Made ImageManager use ImageUtil to create blank images. Walter Korman 2002-01-18 17:55:43 +00:00
  • d6aa41396b Added ImageUtil.createImage() to create blank images that are compatible with the destination screen device. Updated existing code that previously created buffered images directly to reference ImageUtil. Walter Korman 2002-01-18 17:48:11 +00:00
  • ea88a4dd68 Simple animation that renders rain drops for a specified period of time. Walter Korman 2002-01-18 16:22:23 +00:00
  • c6e4b73851 Added comments to some code that needs to be fixed later. Michael Bayne 2002-01-17 23:43:14 +00:00
  • 31fce734b7 Notes. Michael Bayne 2002-01-16 04:15:45 +00:00
  • b9f77beded Construct resource manager according to new method. Michael Bayne 2002-01-16 03:01:45 +00:00
  • 18e5f823ba Resource manager needs be constructed differently now that it loads resources via a URL. Michael Bayne 2002-01-16 03:01:24 +00:00
  • 3562e9271b Use resource_url instead of application.root. Michael Bayne 2002-01-16 03:00:51 +00:00
  • dc00808761 Get shared java libraries from JAVA_LIBS; use resource_url instead of application.root. Michael Bayne 2002-01-16 03:00:37 +00:00
  • d4e2058ea6 Modified the resource manager to load resource sets not from the file system but from a URL into a local cache. It presently loads all of the resources every time the application starts. This will eventually be made to be more sophisticated. Michael Bayne 2002-01-16 03:00:06 +00:00
  • b88b5c61e5 Modified the simulator stuff to allow it to be extended with the intent of providing a specially configured client context for use by the code that runs in the simulator. Michael Bayne 2002-01-16 02:59:08 +00:00
  • 30dab8586f Use the JAVA_LIBS environment variable to determine where our common java libraries are to be found. Michael Bayne 2002-01-16 02:57:19 +00:00
  • 990c8cf1c4 We specify resource_url rather than application.root now. Michael Bayne 2002-01-16 02:56:45 +00:00
  • 40013948c2 Look in JAVA_LIBS for the system-wide java libraries rather than hard coding the path to /usr/share/java. This allows us to set JAVA_LIBS to the path to yolibs when building and running Narya code. Michael Bayne 2002-01-16 00:41:52 +00:00
  • 17b7dac87a These moved into yolibs. Michael Bayne 2002-01-15 18:22:03 +00:00
  • f70fc3aa60 Each image chunk has its own velocity and follows a trajectory path impacted by a specifiable y-axis acceleration. Walter Korman 2002-01-15 18:10:25 +00:00
  • 5deda8b1f8 Added getFloat(). Walter Korman 2002-01-15 18:05:01 +00:00
  • c25c66493e Pass the starting time for the animation in the constructor to allow application code to make sure all animations are in sync, and to avoid repeated calls to System.currentTimeMillis(). Walter Korman 2002-01-15 02:20:02 +00:00
  • 4e3d7d9ece Properly handle a key press followed by seemingly-impossibly-fast, night-instant key release. Added optional debug logging of key events at the KeyboardFocusManager level for good measure. Walter Korman 2002-01-12 02:37:57 +00:00
  • 3fc64a8066 Simple test applications for examining keyboard events and testing the keyboard manager functionality. Walter Korman 2002-01-12 02:31:16 +00:00
  • 70ac159095 Rotate the image chunks as they fly away. Made chunk count configurable. Walter Korman 2002-01-11 19:37:49 +00:00
  • e78607da60 Commented out verbose logging. Minor clean-up. Walter Korman 2002-01-11 16:53:34 +00:00
  • aa574a8182 Added support for animations to the animation manager. Moved animation classes into their own package. Walter Korman 2002-01-11 16:17:34 +00:00
  • c677d08c50 Initial version of a Swing-based variant of the SceneViewPanel, which is possibly only a temporary workaround intended to allow the scene editor to work. BufferStrategy-style rendering only works with Window or Canvas objects, but the scene editor is a full-fledged Swing application and if the scene view panel isn't a Swing component then menus and other things won't render properly on top of it. Walter Korman 2002-01-08 22:19:29 +00:00
  • e3c4fd02b7 Initial work on making use of full-screen exclusive mode and additional rendering optimizations available in JDK 1.4. Use a BufferStrategy, and changed AnimatedPanel to extend Canvas rather than JPanel. Walter Korman 2002-01-08 22:16:59 +00:00
  • df14615e11 Initialize the path before saving it off so that the animation manager can't attempt to move a sprite along a path that isn't fully prepared. Walter Korman 2002-01-07 23:51:52 +00:00
  • b13cdabeb0 Improved error handling when creating offscreen image for double-buffering. Don't paint the panel if it's not yet been laid out. Walter Korman 2002-01-07 23:05:39 +00:00
  • be4b5c3801 Added ability to look up occupants by username. Michael Bayne 2001-12-20 02:48:21 +00:00
  • 8c6bc2d129 Map simulant body objects into the server on creation. Walter Korman 2001-12-20 01:11:18 +00:00
  • 7ba9618ac9 Expanded imports and removed obsolete imports and member data. Walter Korman 2001-12-20 01:10:52 +00:00
  • 04cc7acdb3 Disable debug logging by default. Walter Korman 2001-12-19 23:33:02 +00:00
  • d4837512f6 Initialize the simulant with the game config as well as their body object. Have the simulant notify the game object when it's ready rather than doing it in the SimulatorManager so that game-specific Simulant variants can set themselves up in timely fashion. Walter Korman 2001-12-19 23:30:47 +00:00
  • e90189fd2c Added convenience function for looking up an occupant's info by body oid. Michael Bayne 2001-12-19 23:11:59 +00:00
  • 0f8a78bf7c Let the game manager know when the simulant is ready for the game to begin. Give the simulant body objects their correct username. Cleaned up logging. Walter Korman 2001-12-19 10:02:53 +00:00
  • 3e1e1dea83 Initial version of game simulator to facilitate game testing. Runs a client and game server in a single process, creating as many Simulant players to round out the game as desired. Still more work to do, but currently creates simulants, starts up the game, and awaits players. Walter Korman 2001-12-19 09:32:02 +00:00
  • 6d350588c2 Added contains() and isMoving(). Michael Bayne 2001-12-19 07:43:09 +00:00
  • 049717d5ec Added mechanism for displaying nodemap centered on a particular node. Michael Bayne 2001-12-18 12:43:12 +00:00
  • 995d978a47 Center map when rendering. Michael Bayne 2001-12-18 12:21:21 +00:00
  • c6b7212e57 Automatically start up the animation manager, regardless of whether or not we're showing (the animated panel doesn't choke any more if it's asked to render when not showing). Also leave the animation manager running until it is explicitly shut down. Michael Bayne 2001-12-18 09:46:07 +00:00
  • d75a1d956e Don't include bundle data in class jar file. Added another visualization target. Michael Bayne 2001-12-18 09:27:37 +00:00
  • a14fd63141 Whoops. Didn't want things. Michael Bayne 2001-12-18 09:17:20 +00:00
  • de7f29e154 Added a bunch of new object tiles. Michael Bayne 2001-12-18 09:16:32 +00:00
  • 8a9b56f563 Cope if we have no NodeMap. Michael Bayne 2001-12-18 08:39:20 +00:00
  • 2b302cef07 Modified code that computes object tile bounds to account for new overridable image origin. Michael Bayne 2001-12-18 08:38:57 +00:00
  • 4aef9a0d74 Removed commented out location painting code as it's now in its new home. Michael Bayne 2001-12-18 08:38:33 +00:00
  • 861e8ffb98 Added support for explicitly specifying the offset into the object tile image that should be centered at the origin when the tile is rendered. Michael Bayne 2001-12-18 08:37:54 +00:00
  • e76c0975ca Clean-up and easier toggling of debug logging. Walter Korman 2001-12-17 22:13:19 +00:00
  • f3f4ba4c16 Let observers know when we attempt to switch zones as well as when we succeed or fail in those attempts. Michael Bayne 2001-12-17 04:11:40 +00:00
  • 54565c157a Created zone observers which are notified of successful or failed zone changes. Michael Bayne 2001-12-17 04:00:27 +00:00
  • 5407731257 Add brackets around a toString()ed array of directions. Michael Bayne 2001-12-17 03:51:35 +00:00
  • 5f16f988b2 Added a method for obtaining the direction names array. Michael Bayne 2001-12-17 03:43:54 +00:00
  • f497ce128f Add direction information to the scene summary. Michael Bayne 2001-12-17 03:38:50 +00:00
  • b260ebb9be Updated to deal with new director organization. Michael Bayne 2001-12-17 03:36:36 +00:00
  • 7d079a2bec Switch to new unified direction constants. Michael Bayne 2001-12-17 03:34:04 +00:00