Codota Logo
IPirate
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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