game: Added player actions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user