Codota Logo
SoldierAction.<init>
Code IndexAdd Codota to your IDE (free)

How to use
jsettlers.common.action.SoldierAction
constructor

Best Java code snippets using jsettlers.common.action.SoldierAction.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: jsettlers/settlers-remake

  /**
   * Create a new soldier button.
   *
   * @param actionType
   *            The action to perform on click.
   * @param type
   *            The soldier type.
   * @param image
   *            The image to use.
   */
  public SoldierButton(EActionType actionType, ESoldierType type, ImageLink image) {
    super(new SoldierAction(actionType, type), image, image, Labels.getString("action_" + actionType + "_" + type));
  }
}
origin: jsettlers/settlers-remake

public UpgradeButton(ESoldierType soldierType) {
  super(new SoldierAction(EActionType.UPGRADE_SOLDIERS, soldierType), null, null, "");
  this.soldierType = soldierType;
  switch (soldierType) {
  case SWORDSMAN:
    imageLinksActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 396, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 402, 0) };
    imageLinksInActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 399, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 405, 0) };
    break;
  case BOWMAN:
    imageLinksActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 408, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 414, 0) };
    imageLinksInActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 411, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 417, 0) };
    break;
  default:
    imageLinksActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 420, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 426, 0) };
    imageLinksInActive = new OriginalImageLink[] { new OriginalImageLink(EImageLinkType.GUI, 3, 423, 0),
        new OriginalImageLink(EImageLinkType.GUI, 3, 429, 0) };
    break;
  }
}
jsettlers.common.actionSoldierAction<init>

Javadoc

Create a new SoldierAction.

Popular methods of SoldierAction

  • getSoldierType
    Gets the type of soldiers.

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IsNull (org.hamcrest.core)
    Is the value null?
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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