919790557f
Removed debug logging.
Michael Bayne
2005-05-24 20:32:16 +00:00
862ff8a9eb
Catch Throwable because LWJGL kindly throws errors during initialization in addition to exceptions. Yay!
Michael Bayne
2005-05-24 17:55:52 +00:00
56deaa4982
Catch errors when initializing OpenGL and allow them to be displayed to the user.
Michael Bayne
2005-05-24 17:48:10 +00:00
04bd9c768a
Changed AddObjectUpdate to a more general ModifyObjectsUpdate and added a service call to delete an object.
Andrzej Kapolka
2005-05-24 03:51:13 +00:00
cf3a6e0a91
Allow the reading of the display configuration to be overridden.
Michael Bayne
2005-05-24 02:14:55 +00:00
a5844db478
Rather that returning a String[] description, return a List. Subclasses can now easily add their own descriptions on to the beginning or end of their superclass's descriptions without having to do the hokey pokey.
Ray Greenwell
2005-05-23 23:17:24 +00:00
fa2f528c10
Cleared just a small portion of the great clouds of crack smoke and made the timers not invalidate _every fucking tick_, even if they're not even showing!!!
Ray Greenwell
2005-05-20 01:16:32 +00:00
a66f06bd3b
Added ability to limit the camera's panning; cleaned up input and mouse handler creation.
Michael Bayne
2005-05-19 18:02:07 +00:00
6d3f4c2465
Created LineSegmentPath fixed bug with path completion.
Michael Bayne
2005-05-19 00:21:28 +00:00
0051fcb302
shutdown() is protected in our superclass, let's not widen access.
Ray Greenwell
2005-05-18 01:04:20 +00:00
19ad750acf
A simple standalone converter into JME model format.
Michael Bayne
2005-05-18 00:00:46 +00:00
fcc517c3bf
Use a much larger frustum and don't set up the camera handler to exit our application. We'll do that ourselves thanksverymuch.
Michael Bayne
2005-05-17 22:46:41 +00:00
d059c6288f
Include our media bits in the narya-jme.jar.
Michael Bayne
2005-05-17 22:46:08 +00:00
5c48cd2a1f
The font is no longer included with JME, so we'll stick it here.
Michael Bayne
2005-05-17 22:45:43 +00:00
9213b23ce1
Added ratifyBodyEntry to PlaceManager.
Andrzej Kapolka
2005-05-17 21:53:53 +00:00
3e3dd1b840
Allow the start or end alpha levels to be outside the normal range so that useful delays can be built into the beginning or end of the animation. Detect bogus parameters in the constructor and throw an exception to save developer head-scratching time when the animation doesn't actually do any fading.
Ray Greenwell
2005-05-17 20:16:31 +00:00
94166728a8
Cleaner way to colorize multiframe images generated from tile sets.
Ted V
2005-05-17 00:42:12 +00:00
6acebaa55e
Added multiframe image accessor for tile sets.
Ted V
2005-05-16 23:38:35 +00:00
7a00cd44bf
Allow "escape to exit" functionality to be disabled.
Michael Bayne
2005-05-16 22:35:56 +00:00
b6a8c2be58
Use a more sensible log name; removed unused import.
Michael Bayne
2005-05-16 22:08:55 +00:00
4757af99c6
No longer needed.
Michael Bayne
2005-05-16 22:08:16 +00:00
a2b8874f46
Allow the userobject access controller to be overridden by ye subclasses.
Ray Greenwell
2005-05-16 18:33:57 +00:00
ff3012c5f9
Implement sensible default object access policies at the Crowd level (no one can modify anything, a select few events are allowed on the body object by the body object's owner only).
Michael Bayne
2005-05-16 05:17:05 +00:00
c2ab172503
Put the basis for the token ring authentication stuff into Narya as we are now using it in Yohoho, Game Gardens and Bang.
Michael Bayne
2005-05-16 04:51:11 +00:00
a40de2ec51
Permit changing media render order as long as we're not in a tick. Removes the need to remove and re-add sprites, which was cancelling their paths.
Andrzej Kapolka
2005-05-13 22:22:56 +00:00
3722bc3697
Updates to work with new BUI auto-attach/detach.
Michael Bayne
2005-05-12 22:23:55 +00:00
677455e5d7
Use colors.
Michael Bayne
2005-05-12 22:23:34 +00:00
367252cf51
Brought up to date with the new world order.
Michael Bayne
2005-05-12 21:58:12 +00:00
c5024298fc
Fixme was fixed implicitly a while back; just cleaning up comments.
Ted V
2005-05-12 18:51:57 +00:00
64de3f4368
Player status is now initialized for all games. (And yes, I tested that initBoard didn't generate some exceptions now that the player status initialization occurs after board summary initialization. This occurs in sword fighting and old drinking, for the record.)
Ted V
2005-05-12 00:51:11 +00:00
77a9438c69
Check the size of the hand to make sure the request isn't for an earlier trick.
Andrzej Kapolka
2005-05-07 01:17:49 +00:00
0f4fe33c75
Preserve the event timestamp and modifiers.
Michael Bayne
2005-05-06 22:50:45 +00:00
ff38ec6673
Don't generate InvocationExceptions that don't go to the client; silently ignore requests made after timeouts, generate warnings for other invalid requests.
Andrzej Kapolka
2005-05-06 22:42:32 +00:00
35c3458cd1
Pulled layoutLabel() into a method so we can call it again if we want to change our text.
Michael Bayne
2005-05-06 03:01:43 +00:00
8dec58c227
Don't rotate our scrolling vectors unless we're orbiting the camera.
Michael Bayne
2005-05-04 02:21:53 +00:00
4aa4419c9c
Provide a way to zoom the camera in and out programmatically, added keys to roll the camera forward and back.
Michael Bayne
2005-05-03 23:45:01 +00:00
2caef9416e
Created a simple straight line path, made paths actually work.
Michael Bayne
2005-05-03 22:48:33 +00:00
f8f6c210d6
Changed static constants.
Andrzej Kapolka
2005-05-03 18:20:57 +00:00
43a903c31c
Eliminated the hacky "play card" selection mode, since it's no longer necessary.
Andrzej Kapolka
2005-05-03 18:18:40 +00:00
d6e4fe20c3
Use vsync, we don't like the tearing.
Michael Bayne
2005-05-03 02:39:13 +00:00
0793baaf22
Slight changes to cope with lag and unresponsiveness.
Andrzej Kapolka
2005-05-03 01:49:10 +00:00
ae0547a0ff
Cope with the bug we observed this morning as best we can, shut down the conmgr (and in so doing, the entire server).
Ray Greenwell
2005-05-02 18:52:20 +00:00
e16a115575
Always invalidate media on shutdown to avoid remnants.
Andrzej Kapolka
2005-05-02 00:57:58 +00:00
78d32af2f9
Separate our scene graph into user interface and geometry, reflect that in the services we make available via the context. Added a sprite and path framework not wildly unlike that in media but based around the JME primitives.
Michael Bayne
2005-05-01 23:42:46 +00:00
6c5dc815eb
addChild() -> add().
Michael Bayne
2005-05-01 16:16:35 +00:00
bc07aa1afd
Use a dobj transaction to bundle up the events that get dispatched during each card play. More could be done, I just added this quickly.
Ray Greenwell
2005-04-30 21:37:59 +00:00
357ed12b9f
Switched the chat view and test app over to BUI. Modifide the build script to create a narya-jme.jar file.
Michael Bayne
2005-04-29 03:24:07 +00:00
16322b1422
Added some warnings for illegal DSet operations and added a small optimization in the process. Previously, we dumped stack on the server if a entry add was illegal but did nothing for update/remove. On the client, we complained for updates and (indirectly) adds, but not removes. Now we complain everywhere. And- as an added bonus, on the server we now do only one binary search for updates and removals. Whee!
Ray Greenwell
2005-04-29 02:30:23 +00:00
f5e5d273e7
Moved ScoreAnimation to parlor/media so that games may make use of it. Removed "puzzle fonts" from the narya library (lived in PuzzleBoardView). Left convenience methods in PuzzleBoardView for creation ScoreAnimations, as we like convenience.
Ray Greenwell
2005-04-28 23:17:29 +00:00
73a48a11e9
To avoid having cards bounce up and down when you hold the mouse cursor near the bottom of the hand, don't update the active sprite every frame; rather, only update it at certain key times.
Andrzej Kapolka
2005-04-27 20:36:48 +00:00
052cf8e0e2
Table creation refactor: Rather than have the game config specify table configuration parameters that are unneeded once the actual game starts, and requiring each GameConfigurator to duplicate the functionality of standard table setup, I separated TableConfig from GameConfig. If a game wants to be usable in a table matchmaking service, it implements TableableGameConfig, and returns the TableConfigurator to use. There is a default TableConfigurator implementation that just does everything needed. TableConfigurator returns a happily customized TableConfig, which is sent to the server with the GameConfig in order to create the Table. More refactoring needs to happen to get the Party stuff in line, but right now that's all a mess since we're still supporting the old-style party interface for the old drinking puzzle in yohoho.
Ray Greenwell
2005-04-26 02:38:42 +00:00
2351316259
Removed unneeded dependence on the sound services.
Michael Bayne
2005-04-25 21:08:52 +00:00
03a1e843c1
Exclude the JME package from the build unless the library is detected.
Michael Bayne
2005-04-25 00:59:06 +00:00
b35468910a
Added option to disable selection mode without updating offsets (to avoid playing a card more than once) and switched to checking the mouse location every frame in order to activate cards that moved themselves under the mouse cursor.
Andrzej Kapolka
2005-04-22 21:54:21 +00:00
d35b074afd
Changed the hourglass to animate a multiframe image for the sand rather than move a wee dot.
Ray Greenwell
2005-04-22 20:31:18 +00:00
d065bfde1c
Return null for unoccupied positions in the player oid array.
Andrzej Kapolka
2005-04-22 18:35:05 +00:00
84d7d7a611
More slow progress toward a test application that does chat to a Crowd server. It looks like I'm going to have to write my own user interface toolkit for JME as nothing exists for any Java-based GL library or engine and precious few toolkits exist in C++. Yay!
Michael Bayne
2005-04-21 04:40:12 +00:00
fc9603fc86
Removed extra duration increase.
Andrzej Kapolka
2005-04-21 01:33:17 +00:00
93a58a719f
Increase turn durations when players manage not to time out.
Andrzej Kapolka
2005-04-21 01:31:08 +00:00
5b360afd52
Decrease turn durations after players time out.
Andrzej Kapolka
2005-04-21 00:47:17 +00:00
06899b8b7a
Further massaging of the JME base application; started in on a chat client that will run in happy 3D land.
Michael Bayne
2005-04-21 00:23:41 +00:00
b1e8d60d18
More juicy delicious 3D bits.
Michael Bayne
2005-04-20 23:31:14 +00:00
3b36c61046
More JME wirey uppy bits.
Michael Bayne
2005-04-20 23:09:38 +00:00
9d2505c115
Added a simple chat server test framework onto which I will built a JME-based client.
Michael Bayne
2005-04-20 22:30:19 +00:00
00038b69bf
Some cleanups.
Michael Bayne
2005-04-20 21:48:59 +00:00
ee144eb974
Created a basic application framework that integrates JME's rendering loop (in fixed framerate format) with the Presents event queue in what will hopefully be happy harmony. Also made some edits to the Presents code to not sound like we assume things run on the AWT thread which we don't and which is not the case in this framework.
Michael Bayne
2005-04-20 21:44:03 +00:00
3fded0305b
Let's lay ourselves out, if possible, when we're added to the mediapanel, rather than relying on external initialization.
Ray Greenwell
2005-04-20 17:15:36 +00:00
d75c0e83e6
Don't NPE if the turn holder is null somehow.
Ray Greenwell
2005-04-20 03:18:48 +00:00
2421eeb696
Moved cleanup code to gameDidEnd.
Andrzej Kapolka
2005-04-20 01:53:49 +00:00
87c169e6ac
Added extra methods to support AIs.
Andrzej Kapolka
2005-04-20 00:27:34 +00:00
321671923f
Make it possible for the available scene types to be easily augmented.
Michael Bayne
2005-04-19 20:34:32 +00:00
ad5be61e28
Use isMoving.
Andrzej Kapolka
2005-04-19 18:29:14 +00:00
1ce83b126d
Wrong operator.
Andrzej Kapolka
2005-04-19 18:26:56 +00:00
ed670dd4ba
Card manipulation tweaks. Don't update the positions of moving cards.
Andrzej Kapolka
2005-04-19 18:23:59 +00:00
024bc8afe1
Added method to handle multiple simultaneous transfers to ensure that cards are always subtracted from the hand before more cards are added.
Andrzej Kapolka
2005-04-18 22:02:14 +00:00
8bb219bfed
Moving cards are not selectable; update card offsets when they reach the ends of their paths.
Andrzej Kapolka
2005-04-18 21:02:20 +00:00
967f99b60c
Allow the class loader to which we fall back to be configured in an already created resource manager. Due to the way the Handler stuff is set up, only the first resource manager ever created in a JVM will be wired up to handle resource: URLs and thus we have to be careful to only ever create one resource manager.
Michael Bayne
2005-04-17 19:57:07 +00:00
3b947af265
Parenthesis population.
Ray Greenwell
2005-04-16 05:26:16 +00:00
d93c26f158
Fixed NPE in TrickCardGameManagerDelegate, changed comment.
Andrzej Kapolka
2005-04-16 03:41:08 +00:00
4266c72977
Changed TrickCardGameUtil to use more sensible round-the-table ordering. Changed TeamGameConfig to return the actual indices of the team members, so that teammates need not have consecutive indices.
Andrzej Kapolka
2005-04-16 02:00:57 +00:00
90e3065751
No longer assume that all board summaries are blank at the beginning of the game- go ahead and initialize them and set them in the game object when the game starts.
Ray Greenwell
2005-04-15 21:44:36 +00:00
6d0648b0b7
Added a pause step before the drop into the hand.
Andrzej Kapolka
2005-04-15 21:09:45 +00:00
dcf9c2c9e8
Don't lower card down all the way if it's still selectable.
Andrzej Kapolka
2005-04-15 03:10:06 +00:00
12d1d00e4b
We need to be able to veto the rematch.
Michael Bayne
2005-04-15 02:50:49 +00:00
b221524071
Formalize the notion of rematching a game so that derived classes can get involved in the process.
Michael Bayne
2005-04-15 02:45:20 +00:00
35bef9647c
Added support for an additional drop step to better show cards received from other players.
Andrzej Kapolka
2005-04-14 23:39:41 +00:00
d6d23b5e2d
Yes, it's sufficient, and now it's done too.
Ray Greenwell
2005-04-14 23:20:30 +00:00
d5bf33102a
Checking the active player should automatically discount unoccupied seats.
Ray Greenwell
2005-04-14 23:05:16 +00:00
96133e45e9
Keep track of active card sprite, making sure it keeps being shown as selectable between selection mode switches.
Andrzej Kapolka
2005-04-14 22:54:28 +00:00
ec31df7a99
Removed cruft.
Ray Greenwell
2005-04-14 20:39:56 +00:00
eda477180f
Allow additional game states.
Michael Bayne
2005-04-14 01:22:38 +00:00
ffbf3f7082
Added another utility method.
Andrzej Kapolka
2005-04-13 22:57:43 +00:00
69cd0b41a7
Provide a default green background for games that don't provide an image.
Michael Bayne
2005-04-13 21:41:35 +00:00
0cd9b75c09
Don't send hands to AI players.
Michael Bayne
2005-04-13 21:39:15 +00:00
86959a5191
Added updateBounds method to LabelSprite to allow changing the label, added methods to TrickCardGameUtil to get players left/right/opposite, changed the way CardPanel handles selections.
Andrzej Kapolka
2005-04-13 21:09:32 +00:00
4c3dd9b1af
Dodge the BSD bug with toStringing a channel.
Ray Greenwell
2005-04-13 19:18:45 +00:00
9692c7d221
Moved the main functionality of the score animation into FloatingTextAnimation which is more sensibly named and in a place where everyone who wants to use it can do so without creating a pointless dependency on the puzzle code.
Michael Bayne
2005-04-13 19:06:33 +00:00
9b3bd6ca3d
Moved HourglassView and TimerView into Narya as they are generally useful.
Michael Bayne
2005-04-13 19:00:31 +00:00
27e9719c8b
Include a spacer to the right of the checkbox so that errant clicks on that side don't cause the box to toggle.
Ray Greenwell
2005-04-13 17:07:53 +00:00
e5442732aa
Made a change to prevent cards sticking up after hand readjustment.
Andrzej Kapolka
2005-04-13 02:45:32 +00:00