congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ActionFireable.fireAction
Code IndexAdd Tabnine to your IDE (free)

How to use
fireAction
method
in
jsettlers.graphics.action.ActionFireable

Best Java code snippets using jsettlers.graphics.action.ActionFireable.fireAction (Showing top 8 results out of 315)

origin: jsettlers/settlers-remake

@Override
public void finished(GOEvent event) {
  if (action != null) {
    this.connector.fireAction(this.action);
  }
}
origin: jsettlers/settlers-remake

  @Override
  public void contentHiding(ActionFireable actionFireable, AbstractContentProvider nextContent) {
    uiContentUpdater.stop();
    if (activeBuilding != null) {
      actionFireable.fireAction(new ShowConstructionMarksAction(null));
    }
  }
}
origin: jsettlers/settlers-remake

@Override
public void finished(GOEvent event) {
  eventDataChanged(event);
  firerer.fireAction(new EndDrawingAction(last));
}
origin: jsettlers/settlers-remake

public GOEventHandlerImplementation(UIPoint lastpoint) {
  last = toMapPosition(lastpoint);
  firerer.fireAction(new StartDrawingAction(last));
  starty = lastpoint.getY();
}
origin: jsettlers/settlers-remake

@Override
public void contentHiding(ActionFireable actionFireable, AbstractContentProvider nextContent) {
  if (!nextContent.isForSelection()) {
    // TODO: Replace with a deselect-all-action
    actionFireable.fireAction(new Action(EActionType.DESELECT));
  }
  super.contentHiding(actionFireable, nextContent);
}
origin: jsettlers/settlers-remake

  @Override
  public void eventDataChanged(GOEvent event) {
    UIPoint pos = ((GODrawEvent) event).getDrawPosition();
    ShortPoint2D cur = toMapPosition(pos);
    firerer.fireAction(new DrawLineAction(last, cur, pos.getY() - starty));
    last = cur;
  }
}
origin: jsettlers/settlers-remake

/**
 * Forward a single action
 * 
 * @throws InterruptedException
 */
protected void forwardSingleAction() throws InterruptedException {
  IAction action = toFire.take();
  if (action instanceof DrawLineAction && toFire.peek() instanceof DrawLineAction) {
    ShortPoint2D start = ((DrawLineAction) action).getStart();
    ShortPoint2D end = ((DrawLineAction) action).getEnd();
    double uidy = ((DrawLineAction) action).getUidy();
    while (toFire.peek() instanceof DrawLineAction) {
      DrawLineAction next = (DrawLineAction) toFire.poll();
      end = next.getEnd();
      uidy += next.getUidy();
    }
    action = new DrawLineAction(start, end, uidy);
  }
  fireTo.fireAction(action);
}
origin: jsettlers/settlers-remake

  @Override
  public void run() {
    FireringAction action;
    while (!stopped) {
      try {
        synchronized (toFireMutex) {
          while (toFire.isEmpty() && !stopped) {
            toFireMutex.wait();
          }
          if (stopped) {
            break;
          }
          action = toFire.poll();
        }
        startWatchdog(action.startTime);
        fireTo.fireAction(action.action);
        stopWatchdog();
      } catch (Throwable e) {
        System.err.println("Exception while handling action:");
        e.printStackTrace();
        if (blockingListener != null) {
          blockingListener.actionThreadCaughtException(e);
        }
      }
      if (toFire.isEmpty()) {
        disableWatchdog();
      }
    }
  }
}
jsettlers.graphics.actionActionFireablefireAction

Javadoc

Fires the given action.

Popular methods of ActionFireable

    Popular in Java

    • Running tasks concurrently on multiple threads
    • onCreateOptionsMenu (Activity)
    • onRequestPermissionsResult (Fragment)
    • getSharedPreferences (Context)
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • Runnable (java.lang)
      Represents a command that can be executed. Often used to run code in a different Thread.
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • Callable (java.util.concurrent)
      A task that returns a result and may throw an exception. Implementors define a single method with no
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Top 12 Jupyter Notebook Extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now