mdb
7c62fe276b
Removed the code that allowed a player to play a piecen that was freed up
...
by their tile placement on the same turn.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@548 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:47:34 +00:00
mdb
4ed9579c98
Display the number of tiles remaining, not counting the one currently
...
being placed by the active turn holder.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@547 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:47:03 +00:00
mdb
89807fe8b7
Count piecens from the distributed object rather than the board so that we
...
correctly disallow placement of a piecen that was freed on the same turn.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:46:37 +00:00
mdb
38b45bda04
New resource manager constructor signature.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@545 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:45:56 +00:00
mdb
fa2a7c7105
Made the piecen color array (which is used to color the names in the
...
player status view) match the colors of the piecens in the image.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@524 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 13:14:58 +00:00
mdb
5972527411
Remapped the images from 24-bit to 8-bit, shrinking file size whole
...
bunches.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@523 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 12:01:59 +00:00
mdb
c06e98629f
Missed a spot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@522 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 11:59:09 +00:00
mdb
cd8847afef
Code to render piecen images and shield image. Updated piecen points to
...
jive nicely with the tile images. Name changes. Other cleanups.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@521 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 11:58:54 +00:00
mdb
b8f5028181
We use an image manager again.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@520 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 10:18:10 +00:00
mdb
2ce01f2fcf
Updated MessageHandler prototypes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@519 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-18 10:17:50 +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
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
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
743f4e4460
We need a TableLobby now rather than a plain Lobby.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@393 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:25:11 +00:00
mdb
71f43d5e37
Implement TableConfig.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@392 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:53 +00:00
mdb
d2e1c00a5f
Documentation fix.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@391 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:36 +00:00
mdb
28ad54b543
Added a "Back to lobby" button.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@390 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-24 03:24:20 +00:00
mdb
a3bd6d36ae
Use the system messages now that we have 'em.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@389 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:57:02 +00:00
mdb
29af0f5a94
Try always repainting after computing our dimensions because revalidate()
...
doesn't seem to always result in a repaint.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@388 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:11:24 +00:00
mdb
8f4e14d756
Don't score cities with zero farmers next to them.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@387 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 23:11:03 +00:00
mdb
330465ad43
Modify the geometry of TWO_CITY_TWO temporarily to make it visually
...
clearer that it is two separate cities.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@386 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 21:52:01 +00:00
mdb
36bcc59ca2
Report to the users (using the chat services) when we update the score and
...
automatically end a users turn if they place a tile with no claimable
features.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@384 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:57:21 +00:00
mdb
a9926c56aa
Added hasUnclaimedFeature() and modified setPiecen() to do the right thing
...
if a piecen is placed on a feature that is already claimed (which happens
when someone shows up halfway through a game and we reconstruct the board
state).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@383 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:56:45 +00:00
mdb
ab59041083
Added a "Venissonne!" label and a chat box.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@382 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:55:59 +00:00
mdb
40621aee46
Use isOurTurn() and assume our turn is going to be ended if we place a
...
piece that has no claimable features.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@381 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:55:40 +00:00
mdb
cfe1f23ce7
Pulled our update code out into functions and then call all of them when
...
we enter the game room so that everything starts out in the proper
configuration even if we show up halfway through a game.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@380 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:55:05 +00:00
mdb
b4f05bbc0d
Syntax jockeying.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@379 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-10-18 20:54:34 +00:00
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
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