Keine Fehler mehr, sorry für das davor
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@250 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
b3c903a2ad
commit
0b252810c9
3 changed files with 15 additions and 9 deletions
|
@ -13,7 +13,7 @@ public class MockPlayer implements IPlayer {
|
|||
/** */
|
||||
public Color color;
|
||||
/** */
|
||||
public boolean cameOut;
|
||||
public boolean laidOut;
|
||||
|
||||
/**
|
||||
* @param name
|
||||
|
@ -25,12 +25,12 @@ public class MockPlayer implements IPlayer {
|
|||
hand = new Hand();
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
this.cameOut=false;
|
||||
laidOut = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getCameOut() {
|
||||
return cameOut;
|
||||
public boolean getLaidOut() {
|
||||
return laidOut;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,6 +28,6 @@ public interface IPlayer {
|
|||
*/
|
||||
public String getName();
|
||||
|
||||
boolean getCameOut();
|
||||
boolean getLaidOut();
|
||||
|
||||
}
|
|
@ -8,6 +8,7 @@ public class Player implements IPlayer {
|
|||
private IHand hand;
|
||||
private String name;
|
||||
private Color color;
|
||||
private boolean laidOut;
|
||||
|
||||
/**
|
||||
* Create a new player with a given name and color
|
||||
|
@ -28,6 +29,11 @@ public class Player implements IPlayer {
|
|||
return hand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getLaidOut() {
|
||||
return laidOut;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getColor() {
|
||||
return color;
|
||||
|
|
Reference in a new issue