c97222993b
Have the scene view panel create its own sprite manager and supply it with a scene view model rather than a config object from which it would create a model.
Michael Bayne
2002-02-18 00:40:58 +00:00
9faac13369
Added ability to construct a view model directly with the proper parameters.
Michael Bayne
2002-02-18 00:37:55 +00:00
648c1c3c99
Need to use / not File.separator because apparently jar files always want forward slashes. (Write once, run anywhere!)
Michael Bayne
2002-02-18 00:06:57 +00:00
718ca0de17
Test application for the scrolling isometric view.
Michael Bayne
2002-02-17 23:48:38 +00:00
7fa37c5837
No coordinates.
Michael Bayne
2002-02-17 23:48:27 +00:00
4b783c4482
Enhancements to support simple scrolling. A number of things don't work if the view is scrolled, like object tiles, mouse coordinate computation and pretty much anything other than rendering a scrolling background under some sprites. Someday we'll probably want to sort out all that other business, but not under current monthstone circumstances.
Michael Bayne
2002-02-17 23:45:36 +00:00
fbc39605e7
Enhancements to support scrolling.
Michael Bayne
2002-02-17 23:40:43 +00:00
b1109c8370
The animated view is now passed its invalid rect count in paintImmediately() so that it can figure out if it's being painted solely to facilitate scrolling or because there are dirty regions.
Michael Bayne
2002-02-17 23:39:32 +00:00
7c5e5dbce9
Added support for animated views that scroll. The animation manager attempts to tune its refresh interval to one that allows the animated view to scroll in even pixel counts each time through the render loop.
Michael Bayne
2002-02-17 23:38:18 +00:00
fdf15f0f52
Moved config toggle for showing object footprints into the scene view model where it resides happily with existing toggles for showing coordinates and sprite paths; did some other cosmetic cleanup.
Michael Bayne
2002-02-17 08:09:11 +00:00
42261772a5
Modified scene interface so that tiles are requested directly so that we can implement "virtual" scenes which return tiles infinitely in all directions in anticipation of supporting scrolling.
Michael Bayne
2002-02-17 08:01:15 +00:00
1bd4668067
Minor code cleanup; didn't turn out to be useful to have the object action in the object metrics record.
Michael Bayne
2002-02-17 07:30:45 +00:00
070c12fbbe
Automatically precalculate our precalculatables rather than having some external entity instruct us to do so. We always want them and they're not that expensive to calculate.
Michael Bayne
2002-02-17 07:17:08 +00:00
318b476632
Create tile bounding polygons on demand; changed object tile handling such that a list of object metric records is used rather than a hashtable mapping tile coords to object tile bounding polygons because we were never doing a hash lookup, only iterating over the whole table.
Michael Bayne
2002-02-17 07:16:21 +00:00
8db0bce2a7
Removed warning message because this is a normal occurrence.
Michael Bayne
2002-02-17 07:13:59 +00:00
b3619774c3
Use setStateImmediate() when ending the game so that other game manager code doesn't have to do something like that itself to prevent code from being inadvertently executed after the game has been ended.
Michael Bayne
2002-02-15 03:42:32 +00:00
88a4dc157a
Fixed up the didShutdown() business which was happening twice; moved the delegation into the base callback methods.
Michael Bayne
2002-02-14 18:08:53 +00:00
573939b483
Ignore request to start up an in-play game; moved code that starts a game when all players have arrived in the game room into a method that can be overridden.
Michael Bayne
2002-02-14 07:28:12 +00:00
2e9627d601
New test scene.
Michael Bayne
2002-02-14 01:13:35 +00:00
c25f5ce570
Out with the old, in with the new.
Michael Bayne
2002-02-14 01:11:14 +00:00
131ab59ad9
Whoops, need a length one not zero array.
Michael Bayne
2002-02-14 00:00:45 +00:00
6448309b0e
startGame() and endGame() need to be public to be accessible to the delegates; added isGameOver() to standardize the way that the delegates determine that the game is over (isGameOver() may need to be customized by the games, so we want the delegates to use the game's custom code when appropriate).
Michael Bayne
2002-02-13 18:50:15 +00:00
a00e7e5214
Automatically create a SpriteManager unless otherwise instructed; added methods for starting and stopping the animation manager associated with an animated panel.
Michael Bayne
2002-02-13 18:48:56 +00:00
a85a6f1394
Delegation! Since it's clear that extracting services into delegation classes is only going to become more common, I've gone and created a comprehensive facility for creating and using delegates in the place controller and manager as well as the game controller and manager. With the pattern nicely set, it is also easy to extend to controller/managers further up the hierarchy that might need to delegate special methods of their own. Whee!
Michael Bayne
2002-02-13 03:21:28 +00:00
8399c9a9cf
Removed the code that was setting the clip as it wasn't actually doing anything. The clip is already properly set before render() is called.
Michael Bayne
2002-02-12 08:54:49 +00:00
5fb9273941
Added code to deal with situations where the SceneViewPanel is smaller than the IsoSceneView wants to be. Presently we simply center the scene view, but we'll later be adding the ability to set a rectangle on which to focus the scene view when shrunk so that the user can always see their own character.
Michael Bayne
2002-02-12 08:53:59 +00:00
ebc3fe229d
Made getTurnHolderIndex() public.
Michael Bayne
2002-02-12 07:17:33 +00:00
671d7ddce1
Documentation fixes.
Michael Bayne
2002-02-12 07:01:54 +00:00
7a8908111b
Oh the humanity. Modified the turn game services to be a "mix-in" using the bastard Java technique of delegates and interfaces. I feel like I'm doing OOP with one hand tied behind my back.
Michael Bayne
2002-02-12 06:57:30 +00:00
85797eed0d
Renamed HeterogenousStreamableList to the only slightly less verbose but easier to spell PolyStreamableList. Use ListUtil and String arrays rather than hashtables to track classname to class id mappings.
Walter Korman
2002-02-12 01:54:51 +00:00
7bb1b0f285
A Streamable list of Streamable objects, for those occasions where the user has the need to store objects of varying types in a single list (e.g., different sub-classes of a base class that is itself streamable) that will itself be sent over the wire.
Walter Korman
2002-02-11 22:43:18 +00:00
bcca494fdd
Commented out some debug logging.
Michael Bayne
2002-02-10 04:19:34 +00:00
a4283fd756
Report the actual error when we can't look up a method.
Michael Bayne
2002-02-10 02:13:31 +00:00
45f32c4622
Added resolveActionSequence() to provide a facility for letting the character manager know that certain action sequences for a character descriptor will be needed in the near future.
Walter Korman
2002-02-10 00:05:36 +00:00
2420c9a1a6
Actually reference the action cache when attempting to retrieve action sequences.
Walter Korman
2002-02-09 23:39:17 +00:00
635e9cf930
addObserver -> addClientObserver.
Michael Bayne
2002-02-09 20:47:11 +00:00
284e8ef6ed
Made addObserver into addClientObserver because that's how we do it everywhere else. Same thing for removeObserver.
Michael Bayne
2002-02-09 20:45:23 +00:00
fca91d350b
Added facilities for being notified when the parlor director receives a game ready notification and for taking charge of the process of entering the game room.
Michael Bayne
2002-02-09 11:23:49 +00:00
1bca84927f
Added support for DObject transactions which are collections of events that are dispatched over the network at once and processed all at once.
Michael Bayne
2002-02-09 07:50:37 +00:00
a1162ae85a
Whipped unit tests into shape. Added simple test for dobject transactions.
Michael Bayne
2002-02-09 07:50:04 +00:00
c57ff60e69
Removed ability to run server in test mode. We don't need a whole server when were unit testing.
Michael Bayne
2002-02-09 07:49:41 +00:00
2c50369bd3
Comment reformatting; added xlate() which is like the get() variants except that it extracts the translation string key and arguments from a compound key which is a tab-separated list of strings.
Michael Bayne
2002-02-09 01:35:26 +00:00
4394ad7094
Was missing code for "short" fields.
Michael Bayne
2002-02-09 00:10:19 +00:00
664c4ff062
Whoops. Need to be more careful about putting $Id$ into the source file. CVS was taking it upon itself to expand my regular expression into a proper $Id$ string. Whee!
Michael Bayne
2002-02-08 23:59:36 +00:00
5581b3e65b
Converted more dobj classes to use the gendobj script. (Had to do a wee bit of fiddling to accomplish some things that used to be done by hand.)
Michael Bayne
2002-02-08 23:55:25 +00:00
05a8a19a12
New gendobj added the set<DSet>() method.
Michael Bayne
2002-02-08 23:54:25 +00:00
36e70e902d
Added --force argument; added support for slurping the $Id$ string out of the target file and stuffing it back into the newly generated file so that the generated file doesn't inherit the $Id$ string of the declaration file which would generally not be what we want.
Michael Bayne
2002-02-08 23:53:58 +00:00
995b6f8ea2
Added a set<DSetField>() method for DSet fields in case one wants to replace the entire field rather than just add/remove/update elements.
Michael Bayne
2002-02-08 23:32:16 +00:00
fcca82c3f6
Added build directives to generate dobj source files; made test object a generated dobj class.
Michael Bayne
2002-02-08 23:17:38 +00:00
1258fee18b
Extracted PlaceObject and BodyObject into dobj definition files and checked in their generated counterparts (which we want available for javadoc-type stuff and so that we don't have to see CVS claim no knowledge of them for the rest of time).
Michael Bayne
2002-02-08 23:10:36 +00:00
f28a0b8c7a
Added target for generating distributed object source files from abbreviated definitions.
Michael Bayne
2002-02-08 23:09:33 +00:00
d71d2c3a91
Modified script not to generate new destination file unless the source file is newer.
Michael Bayne
2002-02-08 23:08:39 +00:00
8a6f656111
Implemented a script for automatically generating the necessary distributed object field constants and setter methods for a distributed object class declaration.
Michael Bayne
2002-02-08 22:41:22 +00:00
1e36cb65d8
Need to prefix heterogenous set elements with their classname.
Michael Bayne
2002-02-08 05:14:22 +00:00
b4d5f7da24
Have to cope with heterogenous sets in toString().
Michael Bayne
2002-02-08 04:44:32 +00:00
683d5b2c4e
Removed TODO as it was already done.
Michael Bayne
2002-02-07 20:02:53 +00:00
39db06672b
Modified the AStar path algorithm to use the geometric distance to the goal as its distance estimate and to assign a higher cost to diagonal traversal than to orthogonal traversal.
Michael Bayne
2002-02-07 19:57:24 +00:00
6c35ab42ec
Removed old tilesets.
Michael Bayne
2002-02-07 06:56:26 +00:00
151d06b62c
Moved tools directory under tiles/bundle.
Michael Bayne
2002-02-07 06:55:46 +00:00
5e303799a2
Added a field marshaller for byte arrays.
Michael Bayne
2002-02-07 05:27:07 +00:00
ae5d0fbcb3
Added calls back into the zone manager to allow it to accept or reject a zone entry request and for it to be notified when a zone entry is completed. (So that it can do any processing that it might care to do.)
Michael Bayne
2002-02-07 03:26:58 +00:00
ed63ea9679
Provided hooks for a disk-based cache for composited action animations.
Michael Bayne
2002-02-07 03:20:29 +00:00
de2a0eee01
Meant to make tiles non-covered by default. "...change the poles from plus to minus, and from minus to plus!"
Walter Korman
2002-02-07 02:58:46 +00:00
b4f20f1b36
Initial test landscape tiles from Rick.
Walter Korman
2002-02-07 02:53:19 +00:00
bc6f66f6cd
Added ObjectAction.toString().
Walter Korman
2002-02-07 00:24:36 +00:00
2ba2e7a994
No longer need the SwingSceneViewPanel.
Michael Bayne
2002-02-06 23:40:25 +00:00
923ff9e9a4
Third time's a charm. Why I thought I needed to invert the logic, I do not know.
Michael Bayne
2002-02-06 23:38:45 +00:00
87c6c3e468
Whoops. Wasn't statuc.
Michael Bayne
2002-02-06 23:35:47 +00:00
1b7b8e5737
Added objectFootprintsOverlap(). It's used by the editor, but IsoUtil seemed like the right place for it.
Michael Bayne
2002-02-06 23:34:17 +00:00
554d11c62b
Added support for rendering object footprints when rendering objects (useful in the editor to see what's traversable and what's not).
Michael Bayne
2002-02-06 23:14:56 +00:00
670f3a71c3
Fixed javadoc.
Michael Bayne
2002-02-06 22:47:28 +00:00
e6003b2b3d
Fixed spelling error.
Michael Bayne
2002-02-06 22:47:16 +00:00
45f7d96d70
Include the mapfile path in build exception messages.
Walter Korman
2002-02-06 19:33:36 +00:00
81ed1f42e8
Removed the ShadowTile and replaced it with facilities in the BaseTile to "cover" a tile with an object tile. While a tile is covered, it is impassable. This allows us to have base tiles under object tile footprints that are rendered, but not traversable by character sprites.
Michael Bayne
2002-02-06 17:13:06 +00:00
3042e9c2ad
Removed debug logging.
Michael Bayne
2002-02-06 01:47:08 +00:00
62c466b95f
Changed getContext() to getParlorContext() to prevent naming conflict.
Michael Bayne
2002-02-05 22:58:23 +00:00
ff97ce2c25
Report the error if we fail to load game config; minor restructuring.
Michael Bayne
2002-02-05 22:57:44 +00:00
bf049dc1c7
Set up our SimulatorManager on init().
Michael Bayne
2002-02-05 22:57:10 +00:00
84891c9b91
Whoops, wasn't appending field data to our buffer.
Michael Bayne
2002-02-05 22:27:26 +00:00
9e6e07ea61
Extracted the simulator server services out into an implementable interface so that we can replace the server with a more sophisticated one when running the simulator.
Michael Bayne
2002-02-05 22:12:42 +00:00
8dd6ac2b32
Need to be provided with an omgr rather than referencing it via the SimulatorServer.
Michael Bayne
2002-02-05 22:11:51 +00:00
4575bbcf13
We can safely switch to destfile because we're using our own build of ant.
Michael Bayne
2002-02-05 21:41:17 +00:00
98c0b84562
No longer need this ant wrapper. Use narya/bin/ant.
Michael Bayne
2002-02-05 21:40:40 +00:00
858d9bbefa
Added a script for invoking our version of ant with our jars.
Michael Bayne
2002-02-05 21:39:22 +00:00
0f47b72787
Repackaging! Changed a bunch of foo.tools.bar to foo.bar.tools and brought some other things up to date with changes that had been made to that effect previously. I love the vast sweeping changes that come along with a change of mind.
Michael Bayne
2002-02-05 20:29:10 +00:00
235537f7d4
No need to do toString() business any more.
Michael Bayne
2002-02-05 20:27:59 +00:00
80dd2854e8
Get shared libraryes from JAVA_LIBS rather than /usr/share/java.
Michael Bayne
2002-02-05 20:27:34 +00:00
9cafc77659
Modified simulator manager to obtain helper managers at construct time rather than referencing them through SimulatorServer. This is step on in eliminating SimulatorServer.
Michael Bayne
2002-02-05 20:27:07 +00:00
1cdefe7ae1
Added marshaller for booleans.
Walter Korman
2002-02-05 09:35:59 +00:00
a83e512270
Modified DObject.toString() to use fieldsToString() so that all of its derived classes need not do their own toString()ing.
Michael Bayne
2002-02-04 01:47:20 +00:00
5bb4e3435b
Provided a mechanism by which a DSet can be populated at construct time.
Michael Bayne
2002-02-04 01:34:59 +00:00
c6f72ce556
Log message edit.
Michael Bayne
2002-02-04 00:51:15 +00:00
25717d3cce
Modified distributed sets such that they can be heterogenous or homogenous, and in the latter case, they simply conserve network bandwidth by not transmitting the classname of serialized elements when transmitting themselves or element added/updated events.
Michael Bayne
2002-02-04 00:50:12 +00:00
9b17dafd03
Created an icon manager for loading icons from tilesets using a configuration file to map icon set identifiers to tileset images and metrics.
Michael Bayne
2002-02-03 22:43:54 +00:00
1415319aab
Edited auxilliary -> auxiliary.
Walter Korman
2002-02-03 08:22:38 +00:00
5dc68306ac
Added a byte field marshaller.
Walter Korman
2002-02-03 06:06:10 +00:00
404a56dead
Per Walter's suggestion: made all of the listener interfaces extend a base listener interface so that an object that attempts to add itself as a listener to a distributed object is required to implement at least one of the listener interfaces.
Michael Bayne
2002-02-03 04:38:05 +00:00
9d72060717
Added setFooImmediate versions of BodyObject setters and use setUsernameImmediate in sessionWillStart() so that entities later down the line of session startup processing can reference values set earlier in the process without having to wait for them to be applied by the dobjmgr.
Michael Bayne
2002-02-03 03:09:06 +00:00
d2ee77e08e
Use safeToString() when logging the object that caused a subscriber to choke so that we don't choke if DObject.toString() chokes.
Michael Bayne
2002-02-02 09:53:00 +00:00
9d9872f606
Made ObjectAccessException a nestable exception; modified objectAvailable() error dispatching to not incorrectly report a failure to create an object.
Michael Bayne
2002-02-02 09:42:36 +00:00