summaryrefslogtreecommitdiff
path: root/player/GenericPlayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'player/GenericPlayer.java')
-rw-r--r--player/GenericPlayer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/player/GenericPlayer.java b/player/GenericPlayer.java
index bae29a1..b965310 100644
--- a/player/GenericPlayer.java
+++ b/player/GenericPlayer.java
@@ -12,6 +12,7 @@ import java.io.IOException;
*/
public abstract class GenericPlayer {
public Hand hand=new Hand();
+ int score;
protected String name;
@@ -30,4 +31,11 @@ public abstract class GenericPlayer {
public abstract boolean confirmHu(Card card,int from);
+ public void setScore(int score) {
+ this.score = score;
+ }
+
+ public int getScore() {
+ return score;
+ }
}