mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Changed the boatType attribute from all around the place from String lit to enum
#story[1274]
This commit is contained in:
@@ -29,19 +29,6 @@ public enum BoatMeshType {
|
||||
this.fixedSail = fixedSail;
|
||||
}
|
||||
|
||||
public static BoatMeshType getBoatMeshType(String boatType) {
|
||||
switch (boatType){
|
||||
case "DINGHY":
|
||||
return DINGHY;
|
||||
case "CAT_ATE_A_MERINGUE":
|
||||
return CAT_ATE_A_MERINGUE;
|
||||
case "PIRATE_SHIP":
|
||||
return PIRATE_SHIP;
|
||||
default:
|
||||
return DINGHY;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//TODO kre39 make something not terrible to cycle through boat types
|
||||
public static BoatMeshType getNextBoatType(BoatMeshType boatType) {
|
||||
|
||||
Reference in New Issue
Block a user