40 Zeilen
1.1 KiB
Java
40 Zeilen
1.1 KiB
Java
package de.steamwar.fightsystem.states;
|
|
|
|
public enum FightState {
|
|
PRE_LEADER_SETUP(true, true, false, false),
|
|
PRE_SCHEM_SETUP(true, true, false, false),
|
|
POST_SCHEM_SETUP(true, true, false, false),
|
|
PRE_RUNNING(false, false, true, false),
|
|
RUNNING(false, false, true, true),
|
|
ENTERN(false, false, true, true), //Can be skipped
|
|
SPECTATE(false, true, false, false);
|
|
|
|
private final boolean setup; //PRE_LEADER_SETUP, PRE_SCHEM_SETUP, POST_SCHEM_SETUP
|
|
private final boolean outgame; //PRE_LEADER_SETUP, PRE_SCHEM_SETUP, POST_SCHEM_SETUP, SPECTATE
|
|
private final boolean ingame; //PRE_RUNNING, RUNNING, ENTERN
|
|
private final boolean infight; //RUNNING, ENTERN
|
|
|
|
FightState(boolean setup, boolean outgame, boolean ingame, boolean infight){
|
|
this.setup = setup;
|
|
this.outgame = outgame;
|
|
this.ingame = ingame;
|
|
this.infight = infight;
|
|
}
|
|
|
|
public boolean setup(){
|
|
return setup;
|
|
}
|
|
|
|
public boolean outgame(){
|
|
return outgame;
|
|
}
|
|
|
|
public boolean ingame(){
|
|
return ingame;
|
|
}
|
|
|
|
public boolean infight(){
|
|
return infight;
|
|
}
|
|
}
|