congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IPirateHunter.getPremium
Code IndexAdd Tabnine to your IDE (free)

How to use
getPremium
method
in
ch.sahits.game.openpatrician.model.people.IPirateHunter

Best Java code snippets using ch.sahits.game.openpatrician.model.people.IPirateHunter.getPremium (Showing top 2 results out of 315)

origin: ch.sahits.game/OpenPatricianDisplay

@PostConstruct
private void initializeDialog() {
  setTitle(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateHunterDialog.title", new Object[]{}, locale.getCurrentLocal()));
  initializeButtons();
  IPirateHunter pirateHunter = (IPirateHunter) currentPerson.get();
  String loadedText = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateHunterDialog.dialog1", new Object[]{pirateHunter.getClientName(), pirateHunter.getPremium()}, locale.getCurrentLocal());
  DecoratedText dt = decoratedTextFactory.createDecoratedText(loadedText, new HashMap<>());
  getContent().addAll(dt);
}
origin: ch.sahits.game/OpenPatricianDisplay

@Override
protected EventHandler<MouseEvent> createAcceptHandler() {
  return mouseEvent -> {
    try {
      removeDecoratedContent();
      removeAcceptButton();
      MapSegmentedImage imageMap = segmentFactory.getRandomPirateNest();
      String loadedText = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateHunterDialog.acceptMessage", new Object[]{imageMap.getImageName()}, locale.getCurrentLocal());
      HashMap<String, Object> parameters = new HashMap<>();
      List<Integer> visibleSegs = new ArrayList<>(imageMap.getSegmentIndices());
      parameters.put("visibleSegments", visibleSegs);
      final DecoratedText dt = decoratedTextFactory.createDecoratedText(loadedText, parameters);
      Platform.runLater(() -> getContent().add(dt));
      IPirateHunter pirateHunter = (IPirateHunter) currentPerson.get();
      final IHumanPlayer player = city.getPlayer();
      player.getCompany().updateCash(-pirateHunter.getPremium());
      player.setSegmentedMap(imageMap);
      locationDetector.addSegment(imageMap);
      city.getPlayer().updateCrimialDrive(-1);
      pirateHunter.leave();
      executeOnCloseButtonClicked();
    } catch (RuntimeException e) {
      logger.error("Failed to accept pirate hunter offer", e);
    }
  };
}
ch.sahits.game.openpatrician.model.peopleIPirateHuntergetPremium

Popular methods of IPirateHunter

  • getClientName
  • leave
  • setClientName
  • setPirateName
  • setPremium

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTextField (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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