game: Added player actions

This commit is contained in:
2023-05-01 14:32:22 +10:00
parent 3307b01bf2
commit c37ee0c5f7
5 changed files with 203 additions and 18 deletions

View File

@@ -30,6 +30,27 @@ public class Resource {
return type;
}
/**
* Get the type of the resource
* @return String type of the resource
*/
public String getTypeString() {
switch (type){
case 'C':
return "Coconut";
case 'B':
return "Bamboo";
case 'W':
return "Water";
case 'P':
return "Precious Stone";
case 'S':
return "Statuette";
default:
return "Invalid";
}
}
/**
* Get the coordinate of the resource
* @return Coord coordinate of the resource