Esempio n. 1
0
 public void draw(final Graphics render) {
   // TODO color
   final CapturedModel model = getModel();
   if (model != null) {
     model.draw(render);
   } else {
     getLocation().draw(render);
   }
 }
Esempio n. 2
0
 public boolean interact(final String action, final String option) {
   final CapturedModel model = getModel();
   return model != null ? model.interact(action, option) : getLocation().interact(action, option);
 }
Esempio n. 3
0
 public boolean hover() {
   final CapturedModel model = getModel();
   return model != null ? model.hover() : getLocation().hover();
 }
Esempio n. 4
0
 public boolean click(final boolean left) {
   final CapturedModel model = getModel();
   return model != null ? model.click(left) : getLocation().click(left);
 }
Esempio n. 5
0
 public Polygon[] getBounds() {
   final CapturedModel model = getModel();
   return model != null ? model.getBounds() : getLocation().getBounds();
 }
Esempio n. 6
0
 public boolean isOnScreen() {
   final CapturedModel model = getModel();
   return model != null ? model.isOnScreen() : getLocation().isOnScreen();
 }
Esempio n. 7
0
 public boolean contains(final Point point) {
   final CapturedModel model = getModel();
   return model != null ? model.contains(point) : getLocation().contains(point);
 }
Esempio n. 8
0
 public Point getNextViewportPoint() {
   final CapturedModel model = getModel();
   return model != null ? model.getNextViewportPoint() : getLocation().getNextViewportPoint();
 }
Esempio n. 9
0
 public Point getCentralPoint() {
   final CapturedModel model = getModel();
   return model != null ? model.getCentralPoint() : getLocation().getCentralPoint();
 }