public void update(GameContainer container, int delta) throws SlickException { display.update(container, delta); if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) container.exit(); }
public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException { Display current = (mode == SINGLETON) ? singleton : indv; current.update(container, delta); }