package views; import entities.Pair; import models.IModel; //--------------------------------------------------------------- // public class BackgroundRenderer implements IView { private Sprite sprite; //--------------------------------------------------------------- //--------------------------------------------------------------- // public BackgroundRenderer(String path) { this.sprite = new Sprite(path); this.sprite.setScaleValue(1); this.sprite.setPositionValue(new Pair<>(640d, 480d)); } //--------------------------------------------------------------- //--------------------------------------------------------------- // @Override public void update(IModel model) { } //--------------------------------------------------------------- // @Override public void display() { sprite.draw(); } //--------------------------------------------------------------- // @Override public void delete() { sprite.delete(); } }