public Dog(Context c, DogView view) { this.view = view; x = ResourceManager.INSTANCE.getScreenWidth() / 2; y = (int) (ResourceManager.INSTANCE.getScreenHeight() - ResourceManager.INSTANCE.getPercentageLength(20, true)); view.setXY(x, y); setLastRefreshed(getTime()); }
public void update() { view.setXY(x, y); view.setBackgroundColor(); checkUpdates(); randomBark(); }