6552b5bd8b
Include the timestamp associated with sprite events in the event.
Walter Korman
2002-12-04 02:45:09 +00:00
c321f7eb33
- added debug logging so that we can see the time elapsed between the moment that a sound is requested to just before the LineSpooler object that it was given to starts writing the data to a line. - Turned drain() back on, but only if we're not running under linux. If we're in linux, we instead sleep for 3 seconds, and gosh darn it, the sound should be finished after that.
Ray Greenwell
2002-12-04 02:14:12 +00:00
1d9de38b61
Make the frames per second info available to callers.
Michael Bayne
2002-12-04 01:25:17 +00:00
6cabb846c5
Use a separate runnable for the AWT queue to avoid a call to EventQueue.isEventDispatchThread() and to make Ray happy.
Michael Bayne
2002-12-03 19:42:21 +00:00
b2454c59f3
Removed performance monitor stuff because we can track our frame rate without expensive calls to System.currentTimeMillis().
Michael Bayne
2002-12-03 19:29:35 +00:00
6eed170158
Fixed problem with ticker wherein it was not properly dropping frames when it should. Added code to track and report desired and obtained frame rate.
Michael Bayne
2002-12-03 19:28:04 +00:00
b27571c8c0
Created an extensible mechanism for clearing out a client's location information when they end their session.
Michael Bayne
2002-12-03 06:58:57 +00:00
eff8dc0ca7
We'll have to be a little more forceful about leaving than just clearing out the body object's location id. Sheesh.
Michael Bayne
2002-12-02 23:18:06 +00:00
cf578a11b5
Log the shit out of everything if we come across an invalid class code in the object input stream.
Michael Bayne
2002-12-02 22:10:10 +00:00
0f0631f318
Do some jiggery poker to make sure that if a path completes as a result of our call to Path.init() we don't freak out. Also made a note that paths will be ticked after being init()ed because that's the way it works.
Michael Bayne
2002-12-02 20:11:24 +00:00
55f40108b8
Added simple mechanism to resolve a client, apply some operation to it and release it back into the wild.
Michael Bayne
2002-11-29 23:40:32 +00:00
1c726c8e33
Removed stray newline.
Michael Bayne
2002-11-29 23:40:01 +00:00
a1e8ffa65a
Cancel any game that isn't already over in placeBecameEmpty(), log more useful info when we abort a game because of a complete no-show.
Michael Bayne
2002-11-29 21:25:37 +00:00
d5cc64aa87
Went back to only draining when we detect that the line is active.
Ray Greenwell
2002-11-29 21:22:46 +00:00
5f4108823c
Make it easy for derived classes to opt-out of the no show timer; fixed checkForNoShows() to only claim a partial no-show when one or more players have not reported readiness.
Michael Bayne
2002-11-29 20:56:06 +00:00
f7c27a1afa
Added a mechanism to check that we are running on (or not on) the distributed object event dispatch thread.
Michael Bayne
2002-11-28 22:51:52 +00:00
130d126238
Make it possible for other kinds of sprites to know and report their tile coordinates.
Michael Bayne
2002-11-28 03:42:17 +00:00
26cd1188ae
Improved documentation.
Michael Bayne
2002-11-28 03:41:58 +00:00
8529dd08bf
Added support for an orientation offset which will be used to orient the pathable some number of ticks offset from the "natural" orientation which would be in the direction it is traveling along the arc.
Michael Bayne
2002-11-27 23:48:24 +00:00
0403db5e73
catch NPE. A song can be the top song on the stack and not be playing if musicvolume is 0.
Ray Greenwell
2002-11-27 21:41:53 +00:00
709e65f947
Moved sword spark animation here from there, and allowed specifying the spark duration. Spark is perhaps a bit of a misnomer as the animation is really more of a specialized kind of explosion.
Walter Korman
2002-11-27 01:37:14 +00:00
2895b65909
- always drain again - increased buffer size to 24k
Ray Greenwell
2002-11-27 00:12:14 +00:00
dd87f55b45
Fuck the windows file separator character.
Ray Greenwell
2002-11-27 00:08:36 +00:00
f901cb3041
When testing, allow sounds to be cached if they're locked.
Ray Greenwell
2002-11-26 21:14:11 +00:00
54c486710d
When music is stopped because the volume is turned to 0, don't remove it from the playing music stack.
Ray Greenwell
2002-11-26 18:54:39 +00:00
779640972d
A few things: added support for detecting no-shows after 30 seconds;
Michael Bayne
2002-11-26 09:12:10 +00:00
0353289965
No need to remain subscribed to the client object once we've resolved it.
Michael Bayne
2002-11-26 08:52:53 +00:00
875484b252
Note when we're ticking so that we can tick any media that's inserted during a call to tick() so that if it's subsequently painted we can be assured that it's been ticked at least once previously.
Walter Korman
2002-11-26 02:47:04 +00:00
a4923a6151
bugfix
Ray Greenwell
2002-11-26 02:46:52 +00:00
f8a5a149b7
Clear out our body's location when we log off because with the new client reference counting thing, we can't rely on a user's object being destroyed immediately after they log off. Better to ensure that their location will always be cleared so that location interested entities will be properly notified.
Michael Bayne
2002-11-26 02:46:01 +00:00
917ba53c59
- new sound loading jimmy where a package path and key specify a set of sounds. - added test sound directory setting. - mp3 player needs more fixing, but allow some volume adjustment.
Ray Greenwell
2002-11-26 02:39:40 +00:00
371ca60bf5
Replaced old wacked-in-head system with proper reference counting for client objects.
Michael Bayne
2002-11-26 02:14:25 +00:00
7b6f4893a2
cleanup
Ray Greenwell
2002-11-25 20:02:31 +00:00
963ebdf137
Added note about the drain() bug. Don't play clips or music if the appropriate volume is zero. If music is turned off, stop current playback immediately, but also start it back up if the volume is turned up.
Ray Greenwell
2002-11-23 03:24:26 +00:00
ef2c1ccd8b
don't play sounds with clips, instead have threads that spool sound data to open lines. Joy.
Ray Greenwell
2002-11-23 02:09:36 +00:00
2c681d7291
A base class for our sound repository classes.
Michael Bayne
2002-11-22 21:54:49 +00:00
f63d7cbe09
cleanup/commenting
Ray Greenwell
2002-11-22 19:21:12 +00:00
1953e5686c
genericized music playing, made transitioning from any music type to any other clean and good.
Ray Greenwell
2002-11-22 04:23:31 +00:00
e203c56483
Added code to warn of requests to dirty rectangles that are unseasonably large.
Michael Bayne
2002-11-22 01:54:59 +00:00
dd5ce99781
Added access to getLevel().
Michael Bayne
2002-11-22 01:53:53 +00:00
699e15e95e
Added code to debug tick participants that take excessively long during a tick() or a paint().
Michael Bayne
2002-11-22 01:53:39 +00:00
4c19a90642
Music volume adjusts the mod player.
Ray Greenwell
2002-11-20 23:06:33 +00:00
0c42e140b4
Changed code to report rather than freak out if it finds a non-Miso sprite. It's possible that this is a normal occurrence, but until we ascertain such, we'll go ahead and log what we find.
Michael Bayne
2002-11-20 22:16:54 +00:00
3dbd1c77dd
Maintain a view bounds rectangle and make it available to callers.
Michael Bayne
2002-11-20 22:15:34 +00:00
c8502d212c
Have to initialize our path on the first call to tick() now.
Michael Bayne
2002-11-20 05:33:20 +00:00
58d32302c6
Note in the documentation that tick stamps are no longer comparable to calls to System.currentTimeMillis().
Michael Bayne
2002-11-20 05:32:51 +00:00
2178d75392
mod playing capabilities.
Ray Greenwell
2002-11-20 04:03:09 +00:00
10523980c6
Provide ability to get timestamps from a media panel.
Michael Bayne
2002-11-20 03:11:43 +00:00
3bfca1d20a
Not to complain if we can't load an image because we'll fall back to the classpath. Removed getImageSource() as calling through to the resource manager is simpler.
Michael Bayne
2002-11-20 03:06:06 +00:00
80c81b77c2
Load clips (just them for now) from a specific resource set.
Ray Greenwell
2002-11-20 02:41:38 +00:00
e006702bf7
Added a frame manager constructor that uses a 100% pure Java timer by default.
Michael Bayne
2002-11-20 02:26:33 +00:00
b7b3e02260
Beginnings of support for render order overrides. I'll get back to working on this some day.
Michael Bayne
2002-11-20 02:21:10 +00:00
c4591a92ef
System.currentTimeMillis() begone! We use our own pluggable timer system now (which uses System.currentTimeMillis() at the moment but eventually won't).
Michael Bayne
2002-11-20 02:18:49 +00:00
ac3e732f9b
A pluggable timer system that will eventually provide a native code-based high resolution timer.
Michael Bayne
2002-11-20 02:17:38 +00:00
128547b41b
Use the resource managers bundle searching lookup instead of doing things by hand.
Michael Bayne
2002-11-20 02:15:05 +00:00
2293cae094
Added getResource() which searches the bundles in a resource set for the resources.
Michael Bayne
2002-11-20 02:00:36 +00:00
7da8317928
mp3 playing capabilities.
Ray Greenwell
2002-11-20 01:33:34 +00:00
20e9ccae57
Went back to not initing midi until the first song is played (and doing it on the sound manager thread).
Ray Greenwell
2002-11-19 21:17:35 +00:00
b0aabf1478
Added support for attempting to use an alternate device to play midi, even thought the java sequencer ignores the new Receiver.
Ray Greenwell
2002-11-19 02:24:35 +00:00
7f71748537
Added support for "decorations" which are painted in addition to the character image when painting a character sprite.
Michael Bayne
2002-11-19 00:23:46 +00:00
cfcf934d74
Notes.
Michael Bayne
2002-11-18 19:59:19 +00:00
9a022a98cc
We want to bind to INADDR_ANY rather than localhost specifically.
Michael Bayne
2002-11-18 18:56:52 +00:00
45fb96c4f2
Rewritten to use the Java NIO library rather than the Berkeley NBIO library. 100% pure baby! At least for the moment.
Michael Bayne
2002-11-18 18:53:10 +00:00
d6b84eb0b8
Rewritten to support I/O via channels.
Michael Bayne
2002-11-18 18:51:33 +00:00
01b203fd13
added support for specifying # of loops for a song, fixed up song stack handling with loop logic.
Ray Greenwell
2002-11-16 03:17:41 +00:00
d4126e3514
Not to log dropped frames.
Michael Bayne
2002-11-16 00:15:57 +00:00
125ef04e87
cleanup, figured out what's needed to loop midis consistently. More soon.
Ray Greenwell
2002-11-16 00:13:47 +00:00
d9838206c1
Use Java's timer to invoke our frame tick. Drop frames instead of queueing up repeats when the previous tick takes too long.
Michael Bayne
2002-11-15 23:58:34 +00:00
1d602849f0
- removed verbose logging. - when stopping a midi, remove the meta listener first so that we don't get the event after we've tossed the sequencer. - changed some variable names for clarity. - added code to shutdown the midi system when we shutdown the rest.
Ray Greenwell
2002-11-15 21:38:31 +00:00
9e881810a9
- now only two volume levels: music and clips. - clip types are turned on or off, individually. - wired up volume for music, and it worked, but then I angered some norse god and now it doesn't work anymore despite repeated poking. - fixed up clip volume formula (copied simplified/better code from Sun example)
Ray Greenwell
2002-11-15 20:52:31 +00:00
275d35ce07
Added traceImage(), which will doubtless be further optimized, and it would sure be nice to have a variant that traces the supplied image rather than always creating a new one, and more flexibility with respect to the alpha gradient steps might be nice, but all of that sort of thing will just have to come later.
Walter Korman
2002-11-15 09:29:40 +00:00
0c1c441288
First pass at midi/rmf support. Mostly works, but songs aren't looping more than twice.
Ray Greenwell
2002-11-15 05:34:43 +00:00
51194278ca
Store the largest Clip building blocks we can in the cache (rather than just the byte[] data) so that subsequent plays can happen faster.
Ray Greenwell
2002-11-15 02:06:41 +00:00
6b68cb5530
The same sound file can be played multiple times simultaneously. Sounds can be "locked" so that they don't expire from the LRU cache until they are unlocked.
Ray Greenwell
2002-11-15 01:49:47 +00:00
2837e8789f
Rectangle is a Rectangle2D.
Ray Greenwell
2002-11-14 00:07:35 +00:00
8f276c0a38
Have AbstractMedia implement Shape so that it can be treated generically by code that operates on shapes.
Michael Bayne
2002-11-13 23:59:11 +00:00
fe0a5f545d
Allow setting the volume independantly for any SoundType.
Ray Greenwell
2002-11-13 07:12:40 +00:00
5879dee050
Steempy you eeediot! It's t not iae!
Michael Bayne
2002-11-13 06:42:54 +00:00
401f609224
Catch any argument when loading an image and report useful things.
Michael Bayne
2002-11-13 04:24:51 +00:00
b89f5dc419
Log a stack trace (and refuse to do it) if someone tries to register the same chat display twice.
Ray Greenwell
2002-11-13 01:29:41 +00:00
11da0c8983
Need to specify a null parent when initializing the bundle.
Walter Korman
2002-11-12 22:56:18 +00:00
8a767a3897
Need to specify the sound type when playing.
Walter Korman
2002-11-12 22:55:59 +00:00
cc0d07836b
Use new keyboard mgr interface.
Walter Korman
2002-11-12 22:55:32 +00:00
ac42d81217
Added clearPlaceView().
Walter Korman
2002-11-12 22:55:15 +00:00
14024fbd23
Provide access to the removed entry when one is removed.
Michael Bayne
2002-11-12 20:37:52 +00:00
b90d5e4b85
Renamed ClientController to SimulatorController.
Walter Korman
2002-11-12 19:54:05 +00:00
b0056f0f41
Added zone adapter.
Walter Korman
2002-11-12 19:53:35 +00:00
58d728aa91
Log a stack trace if we're missing a translation message so that it's easy to track down the offender.
Michael Bayne
2002-11-12 08:18:03 +00:00
828fd80951
Minor restructuring to allow derived simulator applications to specialize their logon behaviour to suit their needs.
Walter Korman
2002-11-12 01:42:28 +00:00
80b97158d2
Don't attempt further translation on tainted arguments in compound translation keys. They might contain | which would cause xlate() to think that they were another compound key.
Michael Bayne
2002-11-10 03:14:45 +00:00
6b2433600e
Be a bit more freaked out if someone tries to post an event on a stale distributed object.
Michael Bayne
2002-11-10 01:43:28 +00:00
c53a6f59b1
Add support for clearing a place view when it goes away so that we can better manage multiple outstanding place views.
Michael Bayne
2002-11-08 09:31:59 +00:00
800a3e8a80
Don't swallow keys unless we dispatched them to a puzzle.
Ray Greenwell
2002-11-08 08:17:35 +00:00
59fbad181c
the 'force' argument to ChatDisplay.clear() is now implied.
Ray Greenwell
2002-11-08 07:28:23 +00:00
d50852ebb1
Use Java-provided mechanism for sanity checking.
Michael Bayne
2002-11-07 22:42:51 +00:00
628b82294a
Add sanity check to catch circumstances where dirty regions are posted on threads other than the AWT thread.
Michael Bayne
2002-11-07 21:45:20 +00:00
4f4068a00a
Fixed typo in log message.
Walter Korman
2002-11-06 21:05:13 +00:00
573fe5504b
Fixed time-based animations to fire at the appropriate time.
Walter Korman
2002-11-06 07:40:05 +00:00
9e9dc24b72
Need to put this in a config file, but for the time being, up the "state of the union" report to once every 15 minutes.
Michael Bayne
2002-11-06 06:18:17 +00:00
d5c8d93bef
Bang howdy partner.
Michael Bayne
2002-11-06 04:18:02 +00:00