Package ch.sahits.game.openpatrician.model.personal.impl

Examples of ch.sahits.game.openpatrician.model.personal.impl.PersonalData


  public AIPlayer(ICity homeTown,long cash, DateObject birthDate) {
    super(homeTown, getPersonalData(homeTown, birthDate),cash,ESocialRank.BARGAINER);
  }

  private static PersonalData getPersonalData(ICity homeTown, DateObject birthDate) {
    return new PersonalData(getRandomFirstName(), getRandomLastName(), true, homeTown, birthDate);
  }
View Full Code Here


   * @param male
   * @return
   */
  public static IPlayer createPlayer(String name, String lastName, ICity homeTown, boolean male, int cash) {
    int age = rnd.nextInt(10)+17;
    PersonalData pd = new PersonalData(name, lastName, male, homeTown, computeRandomBirthDate(age));
    IPlayer player = new Player( homeTown, pd,cash,ESocialRank.CHANDLER);
    BuildingFactory.createTridingOffice(player, homeTown,0); // initial trading office has no value
    initPlayerInCities(player);
    return player;
  }
View Full Code Here

TOP

Related Classes of ch.sahits.game.openpatrician.model.personal.impl.PersonalData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.