diff --git a/src/game/Card.java b/src/game/Card.java index 3a7d856..8fbd3b9 100644 --- a/src/game/Card.java +++ b/src/game/Card.java @@ -46,6 +46,28 @@ return c; } + public static String intColorToText(int id){ + String color = ""; + switch(id){ + case 0: + color = "green"; + break; + case 1: + color = "red"; + break; + case 2: + color = "yellow"; + break; + case 3: + color = "white"; + break; + case 4: + color = "blue"; + break; + } + return color; + } + public int getColorInt(){ return color; }