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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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/OpenPatricianEngine

} else if (person instanceof IPirateHunter) {
  IPirateHunter hunter = (IPirateHunter) person;
  hunter.setClientName(firstNameLoader.getRandomName()+" "+lastNameLoader.getRandomName());
  hunter.setPirateName(firstNameLoader.getRandomName()+" "+lastNameLoader.getRandomName());
  hunter.setPremium(rnd.nextInt(5000)+1434);
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.peopleIPirateHunter

Most used methods

  • getClientName
  • getPremium
  • leave
  • setClientName
  • setPirateName
  • setPremium

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Join (org.hibernate.mapping)
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