Codota Logo
BuildAction
Code IndexAdd Codota to your IDE (free)

How to use
BuildAction
in
jsettlers.common.action

Best Java code snippets using jsettlers.common.action.BuildAction (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: jsettlers/settlers-remake

@Override
public PointAction getSelectAction(ShortPoint2D position) {
  if (activeBuilding != null) {
    return new BuildAction(activeBuilding, position);
  } else {
    return null;
  }
}
origin: jsettlers/settlers-remake

private void handleBuildAction(BuildAction buildAction) {
  this.setSelection(new SelectionSet());
  EBuildingType buildingType = buildAction.getBuildingType();
  Optional<ShortPoint2D> position = grid.getConstructablePosition(buildAction.getPosition(), buildingType, playerId);
  position.ifPresent(pos -> scheduleTask(new ConstructBuildingTask(EGuiAction.BUILD, playerId, pos, buildingType)));
  System.out.println("build " + buildingType + " at " + position);
}
jsettlers.common.actionBuildAction

Javadoc

This is a build action. This happens when the user clicks on a map position to build a building there.

Most used methods

  • <init>
    Creates a new build action.
  • getBuildingType
    gets the building that corresponds with this action, if the action is an build action.
  • getPosition

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now