111112113114115116117118119120121
case WIN: if (newState) this.states.put(StateID.WIN, new WinState(context)); case LOOSE: if (newState) this.states.put(StateID.LOOSE, new LooseState(context)); default: return; } //Update the state, giving it a delta time to compute movements