Always operate on cloned hands in the turn controls
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@380 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
c59332950b
commit
af3661fea0
11 changed files with 157 additions and 84 deletions
|
@ -12,6 +12,13 @@ public interface IPlayer {
|
|||
*/
|
||||
public IHand getHand();
|
||||
|
||||
/**
|
||||
* Set the current hand of the player
|
||||
*
|
||||
* @param hand the new hand
|
||||
*/
|
||||
public void setHand(IHand hand);
|
||||
|
||||
/**
|
||||
* Has the player laid out yet?
|
||||
*
|
||||
|
|
|
@ -24,6 +24,11 @@ public class Player implements IPlayer {
|
|||
return hand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHand(IHand hand) {
|
||||
this.hand = hand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getLaidOut() {
|
||||
return laidOut;
|
||||
|
|
Reference in a new issue