Clear out played card fields when they shouldn't be displayed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3475 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -91,6 +91,15 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
|||||||
_trickCardGame.getTrickCardGameService());
|
_trickCardGame.getTrickCardGameService());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Documentation inherited.
|
||||||
|
public void gameWillStart ()
|
||||||
|
{
|
||||||
|
super.gameWillStart();
|
||||||
|
|
||||||
|
// clear out the last cards played
|
||||||
|
_trickCardGame.setLastCardsPlayed(null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the game has started. Default implementation starts the
|
* Called when the game has started. Default implementation starts the
|
||||||
* first hand.
|
* first hand.
|
||||||
@@ -500,6 +509,9 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
|||||||
// store the trick results for late-joiners
|
// store the trick results for late-joiners
|
||||||
_trickCardGame.setLastCardsPlayed(_trickCardGame.getCardsPlayed());
|
_trickCardGame.setLastCardsPlayed(_trickCardGame.getCardsPlayed());
|
||||||
|
|
||||||
|
// clear out the cards played in the trick
|
||||||
|
_trickCardGame.setCardsPlayed(null);
|
||||||
|
|
||||||
// verify that each player has at least one card
|
// verify that each player has at least one card
|
||||||
if (anyHandsEmpty()) {
|
if (anyHandsEmpty()) {
|
||||||
endHand();
|
endHand();
|
||||||
|
|||||||
Reference in New Issue
Block a user