Example #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);
   }
 }
Example #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);
   }
 }