63131a8911
Added a default implementation of getGameName().
Michael Bayne
2004-12-15 02:38:42 +00:00
3bbdef33d7
Do our privileged business in PrivilegedAction wrappers which allows Java's magical security system to do the right thing (or so I think).
Michael Bayne
2004-12-15 02:15:02 +00:00
03c590b6cf
Removed old debug logging.
Michael Bayne
2004-12-14 20:12:59 +00:00
73832f59eb
Made KeyRecord a static class.
Ray Greenwell
2004-12-13 07:52:09 +00:00
6944f479d1
Removed inadvertently checked in test logging.
Michael Bayne
2004-12-10 21:36:03 +00:00
aeff9e61cf
Not having a client is not a warnable offense. All server only "characters" (NPPs in Yohoho) have no client.
Michael Bayne
2004-12-10 19:16:57 +00:00
a6d7764e29
More custom classloader support. We now have a proof-of-concept working so it's unlikely that the rabbit hole will surprise us with further depth.
Michael Bayne
2004-12-10 02:54:26 +00:00
c92a922678
The rabbit hole goes deeper. Now we can configure the client with a custom classloader to use when unserializing objects off the network. Also fixed the way custom classloaders were used as Class.forName(class, true, loader) seems to be the proper way to go to have caching work and whatnot.
Michael Bayne
2004-12-10 01:23:44 +00:00
f16beaa0a1
Allow custom classloaders to be used when loading PlaceManager implementations and their ilk.
Michael Bayne
2004-12-10 00:41:38 +00:00
5f7409307f
Allow a derived place registry to be used.
Michael Bayne
2004-12-10 00:27:31 +00:00
e7ef1e3e61
Support long[] values.
Ray Greenwell
2004-12-09 01:34:50 +00:00
129f302938
Put the pause label in the middle of the visible board. This fixes the bug where there was no pause message in carpentry.
Ray Greenwell
2004-12-08 00:08:44 +00:00
7b3750c19c
Log when a shutdown is initiated by someone pressing ctrl-C (or sending the process the same signal another way).
Ray Greenwell
2004-12-06 22:11:57 +00:00
ecd8e2e8b6
Clear all mappings of oid->chat type when the user logs off.
Ray Greenwell
2004-12-04 00:02:14 +00:00
feb7355804
Go back to defaultly broadcasting to game objects, in case someone ever creates a traditional lobby->room server with narya, and instead allow a broadcast object to be registered with the ChatProvider to which all broadcasts will be sent.
Ray Greenwell
2004-12-03 23:47:19 +00:00
33df387517
Moved shouldBroadcast override from PuzzleObject to GameObject.
Andrzej Kapolka
2004-12-03 23:30:34 +00:00
7ea2b45d39
Changed tabs to spaces since not everyone has the same tab stops.
Ted V
2004-12-03 21:38:22 +00:00
f4bb453f83
Don't report ready if not actually a player.
Andrzej Kapolka
2004-12-03 03:27:37 +00:00
e95f1e8914
Fixed booch-o that caused the cluster no-can-chat bug.
Ray Greenwell
2004-12-02 22:06:05 +00:00
d04e068d9b
Use the custom class loader, though the way MiCasa works, the custom class loader approach can't work. But it's useful to set a proper example.
Michael Bayne
2004-11-30 20:06:36 +00:00
3ed8e3cd0e
Added support for loading place-related classes with a custom class loader.
Michael Bayne
2004-11-30 20:04:11 +00:00
d29db7765a
Updated to use non-deprecated method signatures.
Michael Bayne
2004-11-30 20:03:47 +00:00
5e1b2d16ec
Added custom deserializer to initialize transient casted reference.
Andrzej Kapolka
2004-11-30 02:19:58 +00:00
dd4ce23b93
Restructured table creation to allow it to be customized. Though I now realize I will probably have to change it further.
Michael Bayne
2004-11-30 00:32:43 +00:00
9dc8c542b8
Added private table property to TableConfig.
Andrzej Kapolka
2004-11-29 23:04:56 +00:00
20acf36919
Removed in the spirit of maintaining the fewest lines of code. This can effectively be accomplished with a combination of ResultListenerList and ResultAdapter.
Michael Bayne
2004-11-28 17:03:53 +00:00
1965e4ed30
Terser logging.
Michael Bayne
2004-11-27 22:29:32 +00:00
d492d541b3
Create our game configurator directly rather than returning a class and forcing the caller to instantiate it.
Michael Bayne
2004-11-27 21:24:33 +00:00
421ed5126e
Got a little too excited about using 1.5 features and some slipped into Narya. I added directives to the compile line to prevent that from happening again.
Michael Bayne
2004-11-27 17:34:55 +00:00
49b320716e
A handy utility method.
Michael Bayne
2004-11-27 07:33:29 +00:00
c43689b104
Make sure invocation listeners are only added to the list once.
Michael Bayne
2004-11-26 23:19:29 +00:00
bf9582e31c
Regenerated everything in alphabetical order.
Michael Bayne
2004-11-26 23:14:39 +00:00
7108e6e147
We need classpathref declarations here as well.
Michael Bayne
2004-11-26 23:13:42 +00:00
40b2a587c3
Load the InvocationListener class using the same classloader we use to load the project's service classes so that they are comparable. Also sort everything to avoid pointless changes in regenerated source files when Java decides to arbitrarily return the methods in a different order.
Michael Bayne
2004-11-26 23:13:28 +00:00
e889f5e9fe
Complain if we don't have a classpathref set. Fixed regex as EOL is apparently not a non-word character.
Michael Bayne
2004-11-26 22:48:48 +00:00
2850a15acd
Factored out the code that will be shared between GenServiceTask and GenReceiverTask (not yet implemented). Modified the task so that it can load the service classes via a classpath declared inside ant, avoiding the need to put project classes in Ant's classpath.
Michael Bayne
2004-11-26 22:39:09 +00:00
a04e23e025
Regenerated our marshaller and dispatcher classes with the new Java-based generator. It handles inner classes slightly differently and prepends a project-specific header to the generated classes.
Michael Bayne
2004-11-25 04:47:40 +00:00
a0d343ff04
Rewrote the code that generates InvocationService marshalling and dispatching classes in Java to eliminate annoying dependency on the output format of JDK 1.4.1's javap.
Michael Bayne
2004-11-25 04:46:19 +00:00
90621e78de
Moved standard puzzle chat up to the game level, so that all games can broadcast chat messages on their object..
Ray Greenwell
2004-11-25 00:21:46 +00:00
284494d296
The documentation says that the validator is optional, make it so.
Ray Greenwell
2004-11-24 23:59:39 +00:00
e6b9ee5afe
Check to make sure active card is still managed before sending events.
Andrzej Kapolka
2004-11-24 22:18:33 +00:00
254e60811e
Removed our temporary code as we have figured said things out.
Michael Bayne
2004-11-24 20:37:36 +00:00
226fe41e7c
And I may as well keep the commented-out code up to date.
Ray Greenwell
2004-11-24 00:57:05 +00:00
6acbd15c2f
Small fix: if we're bypassing the copyArea scrolling on a macintosh and just dirtying the entire panel, we don't want to set _dx and _dy, as that will trigger the actual use of copyArea and so forth during painting.
Ray Greenwell
2004-11-23 23:38:43 +00:00
58876841c7
Changed getPartyDescription in PartyGameConfig to getDescription in GameConfig.
Andrzej Kapolka
2004-11-23 22:28:39 +00:00
98ea85c9b1
Pushed getRatingTypeId up to GameConfig.
Andrzej Kapolka
2004-11-23 22:01:41 +00:00
660ff94fc1
On Mac OS X, mark the entire panel as dirty when scrolling to fix artifact issues.
Landon Fuller
2004-11-23 20:09:23 +00:00
d9d3975027
Messages to receiver/service.
Andrzej Kapolka
2004-11-23 02:47:38 +00:00
a9ccfc8553
Don't NPE during normal operation!
Ray Greenwell
2004-11-23 00:41:58 +00:00
4cdcec6149
Do some hackery until we figure out where AuthUserObjects are getting mapped into the client table without mogrified names.
Michael Bayne
2004-11-23 00:17:46 +00:00
70a23b7d80
Changes suggested by Mike.
Andrzej Kapolka
2004-11-19 19:21:46 +00:00
72a6f2f966
Switched to receiver for dealing cards.
Andrzej Kapolka
2004-11-19 19:04:56 +00:00
f5fc8f9d2a
Added stored interval id to server SafeInterval, to match client.
Andrzej Kapolka
2004-11-19 00:32:18 +00:00
4294134954
Moved ButtonSprite up to com.threerings.media.sprite.
Andrzej Kapolka
2004-11-18 23:39:12 +00:00
e5f36ca111
Pushed reportWinnersAndLosers and related methods up to GameManager, MouseInputAdapter instead of MouseAdapter/MouseMotionAdapter.
Andrzej Kapolka
2004-11-18 21:45:10 +00:00
84b6bf5468
Various easy changes suggested by Ray.
Andrzej Kapolka
2004-11-18 20:01:00 +00:00
ebe7a65305
Enumerate the libraries needed to compile Narya.
Michael Bayne
2004-11-18 00:16:21 +00:00
8451c39797
Added missing copyright headers to the .dobj files.
Michael Bayne
2004-11-17 23:16:56 +00:00
0b6168b1d2
No more JAVA_LIBS.
Michael Bayne
2004-11-17 23:16:02 +00:00
1bc67db023
Cope with a CrowdContext if that's all we need.
Michael Bayne
2004-11-15 01:47:52 +00:00
39fcb381e2
Allow specific puzzles to override the default sync setting and force a sync.
Ray Greenwell
2004-11-12 20:03:35 +00:00
57d8d7a703
Sprites should not be initialized with coordinates, so I changed the constructor to reflect that rather than requiring coordinates that are then not really valid.
Michael Bayne
2004-11-12 02:16:04 +00:00
01545355f5
Allow score animations to be extended.
Michael Bayne
2004-11-12 01:09:48 +00:00
4928ff01c7
Support extension.
Michael Bayne
2004-11-12 00:33:38 +00:00
1c1169e723
We need to use our view bounds here (which will be the same as the actual bounds for non-scrolling views).
Michael Bayne
2004-11-11 23:53:51 +00:00
7caf2ee610
Do the right thing if we're holding onto animations while the view scrolls.
Michael Bayne
2004-11-11 23:53:06 +00:00
cd51c78619
Added support for using sprites that are fixed in relation to a potentially scrolling view. Also added a means for non-sprites and animations to hear about view scrolls.
Michael Bayne
2004-11-11 23:52:43 +00:00
512663e482
Properly dirty ourselves if we are relocated.
Michael Bayne
2004-11-11 23:51:40 +00:00
c8a66a4414
Don't assume we'll have a ClusteredBodyObject when we first log on.
Michael Bayne
2004-11-11 02:10:56 +00:00
558cdf660e
This does not work as designed, and we can do what it tries to do in a different way.
Ray Greenwell
2004-11-10 22:53:22 +00:00
c4eb1457dd
Reordered suits for aesthetic purposes, made cards Comparable for sorting.
Andrzej Kapolka
2004-11-01 22:10:21 +00:00
09d41faa37
Javadoc cleanup.
Michael Bayne
2004-10-30 04:33:22 +00:00
c299e830a4
Added enumerateSprites() and removeSprites().
Michael Bayne
2004-10-30 04:33:08 +00:00
4481cd5f6c
Added an import for a javadoc comment.
Michael Bayne
2004-10-29 19:33:16 +00:00
b3de84c918
Render animations behind sprites in the back layer and in front of sprites in the front layer which is generally what we want.
Michael Bayne
2004-10-29 17:10:46 +00:00
78e7fd6837
The way we were postponing gameDidStart() and gameDidEnd() until after the action cleared was ungood. It really only worked for the delegates. Now we do it in a way that works for the controllers themselves and the delegates.
Michael Bayne
2004-10-29 16:32:10 +00:00
14c3a0515a
Allow more 'advanced' robots to be created by derived classes if they like.
Eric Lundberg
2004-10-29 00:48:37 +00:00
18611da53d
Added ButtonSprite class for card game user interfaces.
Andrzej Kapolka
2004-10-29 00:41:50 +00:00
dd1f895190
Handle the situation where a referred object and the referring object are both destroyed without any intervening event processing.
Michael Bayne
2004-10-28 21:59:00 +00:00
abc4e9c86a
Pass the synced board state (or null) to the managers so that they can behave differently (if necessary) when processing an event that has an associated board state.
Michael Bayne
2004-10-28 19:29:59 +00:00
eb900f0084
No more SYNC_BOARD_STATE.
Michael Bayne
2004-10-28 19:20:27 +00:00
1b99ba033e
No more SYNC_BOARD_STATE either. Now that too can be activated at runtime.
Michael Bayne
2004-10-28 19:20:04 +00:00
19bd1b06bf
Javadoc cleanup.
Michael Bayne
2004-10-28 18:59:35 +00:00
bb113e6915
Only add the pause key combo if we're not robot testing.
Michael Bayne
2004-10-28 18:59:14 +00:00
aae20e9918
Make it possible for external entities to check whether or not the robot tester is activated.
Michael Bayne
2004-10-28 18:53:26 +00:00
cec4e340d4
Moved ROBOT_TEST into a runtime adjust.
Michael Bayne
2004-10-28 18:37:49 +00:00
6b1be3d964
Comment edits.
Michael Bayne
2004-10-28 17:59:11 +00:00
a70efc3ffb
NoLongerAnySuchNoSuchTileException. Instead we just log a warning and return a tile with an error image so that the caller doesn't freak out and we achieve maximal "continue to work as much as possible."
Michael Bayne
2004-10-28 17:49:02 +00:00
69e3f857c2
Don't let crazy components ruffle our feathers.
Michael Bayne
2004-10-28 17:21:56 +00:00
8e9322c7fb
Don't reclose an already closed connection, it generates a warning.
Michael Bayne
2004-10-27 01:27:44 +00:00