Files
TiedUp-/src/main/java/com/tiedup/remake/cells/CellState.java
NotEvil f6466360b6 Clean repo for open source release
Remove build artifacts, dev tool configs, unused dependencies,
and third-party source dumps. Add proper README, update .gitignore,
clean up Makefile.
2026-04-12 00:51:22 +02:00

34 lines
841 B
Java

package com.tiedup.remake.cells;
/**
* State of a Cell System V2 cell.
*
* INTACT — all walls present, fully operational.
* BREACHED — some walls broken, prisoners may escape.
* COMPROMISED — Core destroyed or too many walls broken; cell is non-functional.
*/
public enum CellState {
INTACT("intact"),
BREACHED("breached"),
COMPROMISED("compromised");
private final String serializedName;
CellState(String serializedName) {
this.serializedName = serializedName;
}
public String getSerializedName() {
return serializedName;
}
public static CellState fromString(String name) {
for (CellState state : values()) {
if (state.serializedName.equalsIgnoreCase(name)) {
return state;
}
}
return INTACT;
}
}