mdb
7e5b7b16d1
Modified toString() so that it can be optionally provided with opening and
...
closing box characters (the parentheses in (0, 1, 2, 3)).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@478 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-29 06:32:37 +00:00
mdb
0c3f04d9a5
Moved the value marshalling code out of SetFieldRule and into a separate
...
class. Created a digester rule that sets public fields of objects based on
element attributes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@477 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 23:44:40 +00:00
mdb
f4c7631048
Need to be able to throw an exception in parseAndSet().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@476 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 22:17:56 +00:00
mdb
bf63f50762
Made Tuple serializable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@475 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 21:57:42 +00:00
mdb
761d081e84
Pass -breakiter to javadoc so it doesn't complain.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@474 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:43:06 +00:00
mdb
039f612b57
Forgot 'implements Serializable'.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@473 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:34:46 +00:00
mdb
14fea2a593
Created unit test for HashIntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@472 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:34:31 +00:00
mdb
339828bc61
Made HashIntMap serializable and moved test code into a test driver.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@471 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:23:48 +00:00
mdb
b5ad634b78
Add equals() and hashCode() implementations that allow a Tuple to be used
...
as a HashMap key.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@470 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:22:12 +00:00
mdb
d784505217
Fixed a bug with hasNext().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@469 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:21:33 +00:00
mdb
e97604580c
Need to obtain the current turn-holder index before checking to see if the
...
submitting player is the current turn-holder.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@468 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-24 22:41:21 +00:00
mdb
c8484e1602
Add the -breakiterator argument to prevent javadoc 1.4 from complaining.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@467 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-24 22:40:29 +00:00
shaper
3cc13ba534
Check the player index of "place nothing" requests to make sure they
...
originate from the player whose turn it is.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@466 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-24 08:26:52 +00:00
shaper
f0ac9381ac
Removed unused action command.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@465 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-24 08:25:04 +00:00
mdb
e4964afd9c
Updated for new tile world order.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@464 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-24 04:29:04 +00:00
mdb
003d16daf0
Moved the optimization compile parameter into a property to make it easier
...
to change and more obvious.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@463 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:33:49 +00:00
mdb
bbb033b7e1
We should have been using setProperty() not put() and accordingly we can't
...
set a logger object in the properties, but must set the logger class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@462 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:33:03 +00:00
mdb
104c944c92
Be smarter about extracting the servlet context from the application
...
context reference.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@461 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:32:34 +00:00
mdb
c54b4cfb08
Add servlet context logger during servlet initialization phase. Allow
...
servlet context to be specified at construct time to servlet context
logger.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@460 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:13:47 +00:00
mdb
0099205ac9
Added a log system implementation that routes log messages to the servlet
...
context so that we don't have to fiddle around with Velocity trying to
create velocity.log files in inopportune places that collide with
velocity.log files from other Velocity-using applications.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@459 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:08:35 +00:00
mdb
5cbee6d365
Created an iterator that iterates over iterators.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@458 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 03:35:53 +00:00
mdb
9e11a32409
Added support for toString()ing points and dimensions.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@457 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-18 04:01:08 +00:00
mdb
06d5952ad1
Created a rule for checking file format version numbers.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@456 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:55:35 +00:00
mdb
a95aa21cfe
Created an XML Digester rule that allows the calling code to invoke
...
whatever string to argument translations it desires and then call whatever
method it wants to on the object on the top of the stack.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@455 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:46:48 +00:00
mdb
b52216a91d
Created SetFieldRule which allows the XML Digester to set public fields on
...
objects with automatic conversion from a string to the appropriate field
type (currently supports int, Integer, String, int[] and String[]).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@454 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:52 +00:00
mdb
72a3f28d4d
Formatting.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@453 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:02 +00:00
mdb
f6a1538b4f
Require that JUnit forks so that we don't end up with wacky conflicts
...
between xerces.jar loaded by ant and our own copies of an XML parser
implementation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@452 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:44:24 +00:00
mdb
896c1ae4da
Added header.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@451 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:43:48 +00:00
mdb
6767345064
If the connection chokes while we're opening it, we need to let the
...
connection provider know that it's no longer any good.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@450 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-10 04:42:24 +00:00
mdb
86edceb739
OptimizeIt!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@449 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-10 00:37:27 +00:00
mdb
e244fc0ac0
Modified simple parser to take either an absolute path to the file being
...
parsed or an input stream.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@448 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-09 02:54:27 +00:00
mdb
ed62ee452f
Bring build file up to date with latest template. It would be neat if
...
there was some easy way to include the default template. Will have to look
into that.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@447 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 19:41:34 +00:00
mdb
db5477a804
Allow the explicit specification of the classpath when invoking viztool.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@446 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 19:38:54 +00:00
mdb
8a09cf1852
Changed "Venissonne!" to "Venison!". No need to be indiscreet.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@445 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 18:47:08 +00:00
mdb
a36a07ba00
Converted tiles image to 7-bit color palette from 24-bit.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@444 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:06:27 +00:00
mdb
80a1410589
Don't draw the claim group numbers.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@443 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:01:42 +00:00
mdb
c24dd1926b
Added code to display tiles as images.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@442 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:00:22 +00:00
mdb
c69f170765
SiteResourceLoader no longer automatically falls back to the servlet
...
context, so we have to simulate that ourselves.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@441 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:57:18 +00:00
mdb
95a4918665
Don't find anything with Test in it, just anything that ends with Test.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@440 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:56:59 +00:00
mdb
5b0f62c81d
Created NestableIOException for things that need to throw an IOException
...
that contains another exception.
Use NestableIOException in SimpleParser when the parser chokes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@439 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:17:41 +00:00
mdb
674bfee950
Log when we set a tile to be placed on the board.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@438 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 18:03:33 +00:00
mdb
d23fa8e8a7
A few changes:
...
1. Make sure a tile or piecen submitted is submitted by the current turn
holder.
2. Wait to end the turn until after we've received the elementAdded
notification for piecen placement and done the scoring. This ensures that
all events that need to be dispatched before the turn ends are dispatched
and that piecen removal is completed before we end the game and
potentially do more scoring.
3. When scoring a tile, always use an array that we can modify during the
scoring process to ensure that we don't score a claim group twice by
virtue of it being completed by a tile with two of the same feature, both
of which are linked into the same claim group. By removing piecens from
the array immediately, we can tell that we scored a claim group the first
time because the piecens belonging to the claim group will have been
removed from the local array whereas they would not yet have been removed
from the distributed set by virtue of the element removed events not yet
having been dispatched. Distributed programming is tricky.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@437 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 10:42:24 +00:00
mdb
c87ecd0eb3
When scoring a feature, we can't simply count up the elements in the claim
...
group list because that may contain the same tile multiple times when
tiles that contain multiple features are included in a single claim group
with both of their features. So we have to do some extra jockeying to
ensure that we count a tile only once.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@436 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 10:39:00 +00:00
mdb
0eb0714926
Removed some debug logging.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@435 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:55:51 +00:00
mdb
383632dd53
A crapload of changes: load more stuff from servlet config; message
...
manager now supports site-specific translation messages; application
automatically configures Velocity to use things like the
SiteResourceManager and the ImportDirective.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@434 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:16:47 +00:00
mdb
ef8376124a
Pass SiteResourceLoader in constructor, changed name to
...
SiteJarResourceLoader, no longer pass fallbackToServletContext argument.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@433 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 19:19:47 +00:00
mdb
70e6a94aa4
Commented out some debug log messages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@432 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:37:57 +00:00
mdb
8d4c490c0d
Added code to cache resolved resource bundles in the request object so
...
that we don't have to re-resolve the bundle for every single message
lookup.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@431 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:35:54 +00:00
mdb
864d282c3d
Activate caching for the time being.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@430 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:22:39 +00:00
mdb
0d8cfc27c3
Need to explicitly check to make sure the site-specific jar file exists.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@429 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:05:28 +00:00