mdb
520df41715
Fixed bug in isValidPlacement(); added code to log reason for invalid
...
placement; changed initFeatures() to inheritFeatures().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@360 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-16 17:11:07 +00:00
mdb
56873a6443
Implemented claim groups and the necessary code to properly propagate
...
claim groups to newly placed tiles and to existing tiles when a piecen is
placed or a tile is placed that joins groups. Whee!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@359 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-16 09:31:46 +00:00
mdb
df898f60d1
Whole bunches of stuff. The game flow should do the right thing from start
...
to finish (ending the game when the last tile is played). Added a turn
indicator view that displays whose turn it is, the tile being placed and
the number of tiles remaining to be played. Added code to create
geometries for each tile which dictates which parts of it are farms, roads
and cities, respectively. These are currently used to render the tiles but
will eventually just be used to identify where the user wants to place
their piecen.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@358 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-16 01:41:55 +00:00
shaper
3445af5ce7
Created a simple extensible parser class to take care of common
...
character data gathering and file parsing machinations.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@357 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-15 23:46:02 +00:00
mdb
7dc00b831e
Created tile feature geometry specifications and test code to draw the
...
geometry to make sure it is correct.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@356 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-15 19:55:15 +00:00
mdb
25cf08c651
Removed debug logging.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@355 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-15 19:54:53 +00:00
mdb
2e8c0fc9c6
Created specialization of tuple for holding a pair of ints.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@354 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-15 18:08:47 +00:00
mdb
6d377584f5
Have things to the point where players take turns placing tiles. Whee!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@353 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-12 20:34:13 +00:00
mdb
2b211cb4b1
We have to call revalidate() rather than repaint() when adding or removing
...
children or Swing doesn't quite do the right thing.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@352 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-12 18:21:27 +00:00
mdb
0c23daaeb6
Doris the rename-asaurus!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@351 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-11 04:08:22 +00:00
mdb
4c6b9f9546
Added isValidPlacement() for checking after the fact whether a tile
...
placement is legal.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@350 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-11 04:00:49 +00:00
mdb
f476914a61
Tiles render themselves using a primitive but informative method. Wrote
...
code to figure out where tiles can legally be placed. Wrote code that
displays a tile for placement on the board and does some neat calculations
to determine the orientation of the tile based on the mouse coordinates
within the tile. It's progress folks. We love progress.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@349 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-10 06:14:57 +00:00
mdb
48c2c126ab
Mo betta progress!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@348 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-10 03:35:02 +00:00
mdb
bec5738f2b
Skeleton for Venison! The tile-laying game of farming, brigandeering and
...
general conquest.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@347 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-09 20:27:35 +00:00
mdb
9037e049a4
Fixed a bug in the right justification code related to insets handling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@346 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-09 19:46:31 +00:00
mdb
4f0738bc19
Added code to deal with left-over pixels that may occur due to rounding
...
error when the number of free components doesn't divide evenly into the
number of pixels they need to occupy.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@345 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-09 19:21:37 +00:00
mdb
0096257d75
Added getProperties() which allows one to fetch the properties object
...
associated with a particular namespace identifier.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@344 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-04 00:24:16 +00:00
mdb
bc718ddb13
Initial revision
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@340 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 18:32:27 +00:00
mdb
6dcbc4196d
Added a version of findMethod() that takes the arguments themselves rather
...
than the types of the arguments.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@339 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 03:05:09 +00:00
mdb
82749c5d13
More comment edits.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@338 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 02:22:58 +00:00
mdb
369c03add2
Fixed up javadoc comments. Removed some unneeded final declarations in
...
Methodfinder.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@337 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 02:20:05 +00:00
mdb
cb67758df6
Updated Sun's javadoc URL.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@336 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 02:19:27 +00:00
mdb
db4c9f429b
Adapted code from Paul Holser for looking up a reflected method that
...
matches a certain set of argument types that works the compiler works.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@335 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-03 02:09:12 +00:00
mdb
4652d8b548
Modified code to handle an exception that propagates up past iterate(). It
...
still causes the thread to exit by default, but it provides a mechanism
for overriding that behavior and it logs the exception rather than quietly
dying.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@334 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-02 22:35:26 +00:00
mdb
3f3edcb0da
Close the statement that we use to get the last inserted id.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@333 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-28 22:41:40 +00:00
mdb
262f10c8c2
Added toIntArray() which converts the contents of a collection to an int
...
array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@332 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-27 23:13:24 +00:00
mdb
ca99e54921
Update for repackaged PersistenceException.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@331 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-21 03:09:01 +00:00
mdb
8c4f4474ac
Moved PersistenceException into com.samskivert.io because it's not
...
specific to JDBC.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@330 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-21 03:01:46 +00:00
mdb
68509796a9
Added indexOf() and indexOfEqual().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@329 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-21 01:34:17 +00:00
mdb
4057710901
Modified code to use new repository services. Created proper configuration
...
files rather than hardcoding configuration in classes. Made startup error
reporting appear in a dialog rather than be written to stderr.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@328 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 20:42:48 +00:00
mdb
baf5cade44
Liaison fixups.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@327 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 20:41:10 +00:00
mdb
c5cda2f332
Throw a FileNotFoundException in loadProperties() if we are unable to
...
locate the properties file in the classpath.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@326 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 20:39:49 +00:00
mdb
66bf203fc2
Log a warning if we find that we need to use the default database liaison
...
because that's generally a bad deal.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@325 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 02:17:03 +00:00
mdb
33e39679da
Finished up liaison stuff.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@324 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 02:09:09 +00:00
mdb
0d5051e407
Serious database services rethink. It's cleaner, more loosely coupled and
...
more extensible now. Whee!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@323 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 01:53:20 +00:00
mdb
418655feab
Crapload of notes on database services.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@322 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 01:52:26 +00:00
mdb
07fcb0022b
Switch from jarfile= to file=. It's the New Way (tm).
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@321 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-20 01:52:12 +00:00
mdb
7a4064dc55
Code modifications to support new IntMap interface.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@320 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-15 17:31:09 +00:00
mdb
c73202d716
Updated the build file from the newest template.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@319 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-15 17:30:53 +00:00
mdb
dc12791cc8
Reworked IntMap to be a proper Java collection in the style that the
...
java.util collections established. This means that IntMap becomes
HashIntMap, IntMap is now an interface that extends the standard Map
interface and a new Collections class is provided that allows one to
create a synchronized wrapper around an IntMap.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@318 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-15 17:22:11 +00:00
shaper
98b338f19e
Added getPolygon() to return a polygon bounding a given rectangle.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@317 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-14 20:00:08 +00:00
mdb
f8782c8f94
Make sure we can load up an entry for a particular eid that we found in
...
the playlist.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@316 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-09-14 17:45:46 +00:00
shaper
3325368832
Separate the tool tip interval frequency from the mouse delay before a
...
tool tip is shown.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@315 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-30 21:17:33 +00:00
shaper
384a01e307
Added support for retrieving boolean configuration values.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@314 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-29 18:40:26 +00:00
shaper
5155bc68de
Added ToolTipProvider interface, and track and pass along the mouse
...
position associated with tool tip display so that tool tips can be
positioned more appropriately within their container.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@313 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-28 23:51:48 +00:00
shaper
5032121aef
Added drawStringCentered().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@312 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-23 00:17:42 +00:00
shaper
2453e34bce
Monitor the component's ancestor events so that the tool tip interval
...
can be registered and unregistered based on component visibility.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@311 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-23 00:16:21 +00:00
shaper
75b13b137c
Initial version of classes to support working with tool tips in a more
...
generic, extensible and lightweight fashion than is possible with the
current incarnation of Swing tool tips.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@310 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-22 08:15:39 +00:00
mdb
998d8d60cb
Whitespace massaging modifications.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@309 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-21 18:46:10 +00:00
mdb
b8d360df34
To dos.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@308 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-08-19 05:05:15 +00:00