private void renderGUIControls(Graphics g) { Collection<Sprite> decorSprites = game.getGUIDecor().values(); for (Sprite s : decorSprites) { if (!s.getSpriteType().getSpriteTypeID().equals(BACKGROUND_TYPE)) renderSprite(g, s); } Collection<Sprite> buttonSprites = game.getGUIButtons().values(); for (Sprite s : buttonSprites) renderSprite(g, s); }
public void renderBackground(Graphics g) { Sprite bg = game.getGUIDecor().get(BACKGROUND_TYPE); renderSprite(g, bg); }