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

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

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

origin: ch.sahits.game/OpenPatricianEngine

} else if (person instanceof IPirate) {
  IPirate pirate = (IPirate) person;
  pirate.setName(pirateFirstNameLoader.getRandomName()+" "+pirateLastNameLoader.getRandomName());
  pirate.setFollowers(rnd.nextInt(15)+12);
  pirate.setProfitShare((rnd.nextInt(7)*5+35)/100.0);
} else if (person instanceof IPirateHunter) {
  IPirateHunter hunter = (IPirateHunter) person;
origin: ch.sahits.game/OpenPatricianDisplay

setTitle(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateDialog.title", new Object[]{}, locale.getCurrentLocal()));
int share = (int)Math.rint(pirate.getProfitShare()*100);
String loadedText = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateDialog.dialog", new Object[]{pirate.getFollowers(), share}, locale.getCurrentLocal());
    try {
      boolean wholeHanseFlag = ((Node) event.getSource()).getId().equals("wholeHanse");
      final INonFreeSeaPirate seaPirate = peopleFactory.createNewPirate(pirate.getName(), currentShip.get(), city.getPlayer(), wholeHanseFlag ? null : city.getCity());
      seaPiratesState.add(seaPirate);
      int nbDays = rnd.nextInt(200) + 30;
      city.getPlayer().removeShip(currentShip.get());
      city.getPlayer().removeSelectableVessel(currentShip.get());
      pirate.leave();
ch.sahits.game.openpatrician.model.peopleIPirate

Most used methods

  • getFollowers
  • getName
  • getProfitShare
  • leave
  • setFollowers
  • setName
  • setProfitShare

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JOptionPane (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
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