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
|
@ -12,27 +12,27 @@ public class MockPlayer implements IPlayer {
|
||||||
public String name;
|
public String name;
|
||||||
/** */
|
/** */
|
||||||
public Color color;
|
public Color color;
|
||||||
/** */
|
/** */
|
||||||
public boolean cameOut;
|
public boolean laidOut;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param name
|
* @param name
|
||||||
* the player name
|
* the player name
|
||||||
* @param color
|
* @param color
|
||||||
* the player color
|
* the player color
|
||||||
*/
|
*/
|
||||||
public MockPlayer(String name, Color color) {
|
public MockPlayer(String name, Color color) {
|
||||||
hand = new Hand();
|
hand = new Hand();
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
this.cameOut=false;
|
laidOut = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getCameOut() {
|
public boolean getLaidOut() {
|
||||||
return cameOut;
|
return laidOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IHand getHand() {
|
public IHand getHand() {
|
||||||
return hand;
|
return hand;
|
||||||
|
|
|
@ -28,6 +28,6 @@ public interface IPlayer {
|
||||||
*/
|
*/
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
||||||
boolean getCameOut();
|
boolean getLaidOut();
|
||||||
|
|
||||||
}
|
}
|
|
@ -8,6 +8,7 @@ public class Player implements IPlayer {
|
||||||
private IHand hand;
|
private IHand hand;
|
||||||
private String name;
|
private String name;
|
||||||
private Color color;
|
private Color color;
|
||||||
|
private boolean laidOut;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new player with a given name and color
|
* Create a new player with a given name and color
|
||||||
|
@ -27,6 +28,11 @@ public class Player implements IPlayer {
|
||||||
public IHand getHand() {
|
public IHand getHand() {
|
||||||
return hand;
|
return hand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean getLaidOut() {
|
||||||
|
return laidOut;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Color getColor() {
|
public Color getColor() {
|
||||||
|
|
Reference in a new issue