예제 #1
0
 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());
 }
예제 #2
0
 public void update() {
   view.setXY(x, y);
   view.setBackgroundColor();
   checkUpdates();
   randomBark();
 }