/** Invokes the 'update' method of the current state. */ public void update() { State currentState = stateSelector.getState(); currentState.update(); }
private StateUpdater() { stateSelector = StateSelector.getInstance(); }