Exemplo n.º 1
0
 private void fireGameFieldDragged(final Point currentCell, final Point previousCell) {
   GameFieldDragEvent event = new GameFieldDragEvent(this, previousCell, currentCell);
   for (GameFieldInputListener listener :
       this.listenerList.getListeners(GameFieldInputListener.class)) {
     listener.gameFieldDragged(event);
   }
 }
Exemplo n.º 2
0
 private void fireGameFieldTouched(final Point touchedCell) {
   GameFieldTouchEvent event = new GameFieldTouchEvent(this, touchedCell);
   for (GameFieldInputListener listener :
       this.listenerList.getListeners(GameFieldInputListener.class)) {
     listener.gameFieldTouched(event);
   }
 }