forked from SteamWar/SteamWar
Improve several things
This commit is contained in:
@@ -36,6 +36,7 @@ public enum RegionType {
|
||||
SPAWN_PATH(false, false, true, ConnectionType.Path),
|
||||
SPAWN_EXTENSION(false, false, false, ConnectionType.Closed),
|
||||
PATH(false, false, false, ConnectionType.Path),
|
||||
|
||||
DRY(false, true, false, ConnectionType.Closed),
|
||||
DRY_SPECIAL(false, false, false, ConnectionType.Closed),
|
||||
WET(false, true, false, ConnectionType.Water),
|
||||
@@ -47,10 +48,18 @@ public enum RegionType {
|
||||
private final boolean cannotDelete;
|
||||
private final ConnectionType connectionType;
|
||||
|
||||
public boolean isSpawn() {
|
||||
return this == SPAWN || this == SPAWN_PATH || this == SPAWN_EXTENSION;
|
||||
}
|
||||
|
||||
public boolean isPath() {
|
||||
return this == PATH || this == SPAWN_PATH;
|
||||
}
|
||||
|
||||
public enum ConnectionType {
|
||||
Closed,
|
||||
Path,
|
||||
Water,
|
||||
Global
|
||||
Global,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user