mdb
a03974210b
Added string names for describing the feature codes to humans.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@378 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:54:20 +00:00
mdb
f5f4f8b336
Update the piecen count when we enter the game room.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@377 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:53:53 +00:00
mdb
5a96e13b29
Shrunk the tiles to 64x64.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@376 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 19:08:50 +00:00
mdb
367c4cfa83
Right click now sends PLACE_NOTHING. Removed code to draw black border.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@375 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 18:42:33 +00:00
mdb
6fa026432c
Added code to display remaining piecen count for each player.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@374 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 18:10:57 +00:00
mdb
28791449cc
End the turn automatically if a player has no playable piecens after they
...
place their tile.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@373 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 02:19:24 +00:00
mdb
cb2f09cab0
Handle multiple -D args properly.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@372 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 02:19:04 +00:00
mdb
72e0998b6f
Set things up if we show up in the room and its our turn. Also do the
...
right thing if we had no piecens to place, but our act of placing a tile
freed up one of our piecens for placement.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@371 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 02:18:47 +00:00
mdb
1b5809f3fa
Add code to count piecens from the tile state rather than the piecen set.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@370 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 02:17:54 +00:00
mdb
d520132440
Allow reenabling of piecen placement and paint a white rectangle around
...
the last placed tile.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@369 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 02:17:30 +00:00
mdb
aa148ebf00
Commented out the piece removal (we're going for a whole game).
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@368 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 23:28:34 +00:00
mdb
2d029fe059
Revamps galore! Player info display! Working scoring for all cases (we
...
hope)! It's a glorious day!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@367 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 23:27:52 +00:00
mdb
758b5f9ff5
Was missing a break in a switch statement.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@366 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 17:01:02 +00:00
mdb
6a5b6e629b
Fixed and finished up cloister scoring for already on the board cloisters.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@365 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 05:01:51 +00:00
mdb
52dfdf7332
Initial code to compute scores and to handle incremental scoring.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@364 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 04:34:14 +00:00
mdb
8f5295ee48
git-svn-id: https://samskivert.googlecode.com/svn/trunk@363 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-17 02:19:54 +00:00
mdb
2ebed980b5
Move features and claim array initialization into initFeatures() so that
...
we can call it after unserialization as well as via the regular
constructor.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@362 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-16 17:12:32 +00:00
mdb
ce346764d5
Specify a valid rather than blank tile for the throwaway placing tile.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@361 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-16 17:11:58 +00:00
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