refactored the model to incoporate a correct folder structure

This commit is contained in:
Fleischer Hanno
2024-11-25 16:41:44 +01:00
parent 0b538efbfb
commit 7178935553
166 changed files with 16 additions and 77 deletions

View File

@@ -1,33 +0,0 @@
package pp.mdga.client;
public abstract class ClientState implements Observer {
protected static final System.Logger LOGGER = System.getLogger(ClientState.class.getName());
protected ClientState parent;
protected ClientGameLogic logic;
protected ClientState(ClientState parent, ClientGameLogic logic){
this.parent = parent;
this.logic = logic;
}
public void entry(){/* do nothing */}
public void exit() {/* do nothing*/}
public void gotoState(ClientState newState){
throw new IllegalStateException("not in a statemachine");
}
public ClientState getParent(){
return parent;
}
public void update() {/* do nothing */}
@Override
public String toString(){
return getClass().getSimpleName();
}
}