-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21cac3b
commit 9f45dd2
Showing
3 changed files
with
76 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
package models.Tile; | ||
|
||
public enum TileModeEnum { | ||
desert("desert"), | ||
grassland("grassland"), | ||
hill("hill"), | ||
mountain("mountain"), | ||
ocean("ocean"), | ||
snow("snow"), | ||
tundra("tundra"); | ||
desert("desert", 0, 0, 0, -0.33, 1.0), | ||
grassland("grassland", 2, 0, 0, -0.33, 1.0), | ||
hill("hill", 0, 2, 0, 0.25, 2.0), | ||
mountain("mountain", 0, 0, 0, 0, Double.POSITIVE_INFINITY), | ||
ocean("ocean", 0, 0, 0, 0, Double.POSITIVE_INFINITY), | ||
PLAIN("plain", 1, 1, 0, -0.33, 1.0), | ||
snow("snow", 0, 0, 0, -0.33, 1.0), | ||
tundra("tundra", 1, 0, 0, -0.33, 1.0); | ||
|
||
TileModeEnum(String name) { | ||
private final String name; | ||
private final int food; | ||
private final int production; | ||
private final int gold; | ||
private final double troopBoost; | ||
private final Double movementCost; | ||
|
||
|
||
TileModeEnum(String name, int food, int production, int gold, double troopBoost, Double movementCost) { | ||
this.name = name; | ||
this.food = food; | ||
this.production = production; | ||
this.gold = gold; | ||
this.troopBoost = troopBoost; | ||
this.movementCost = movementCost; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public int getFood() { | ||
return food; | ||
} | ||
|
||
public int getProduction() { | ||
return production; | ||
} | ||
|
||
public int getGold() { | ||
return gold; | ||
} | ||
|
||
public double getTroopBoost() { | ||
return troopBoost; | ||
} | ||
|
||
public Double getMovementCost() { | ||
return movementCost; | ||
} | ||
} |