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

Examples of ch.sahits.game.openpatrician.model.personal.IReputation


      y += positions.lineHeight;
      sb = new StringBuilder();
      sb.append("Social status in this town: ").append(city.getCity().getSocialRank());
      y = drawRow(g2d, y, firstColumn, sb.toString());
     
      IReputation rep = city.getCity().getReputation(player);
      int repDiff = rep.getReputationDifference();
      sb = new StringBuilder();
      if (repDiff<0){
        // reputation has sunk
        if (repDiff<=-10 && repDiff>-25){
          sb.append("Your reputation has sunken.");
View Full Code Here


    if (rank==ESocialRank.PATRICIAN || rank==ESocialRank.MAYOR || rank==ESocialRank.ALDERMAN){
      return false;
    }
    long compValue = player.getCompany().getCompanyValue();
    ESocialRank nextRank = rank.getNextRank();
    IReputation rep = homeTown.getReputation(player);
    int popularity = rep.getPopularity();
    if (compValue>=nextRank.getCompanyValue() && popularity>=nextRank.getSocialReputation()){
      if (nextRank==ESocialRank.COUNCILMAN){
        // TODO check for guild membership
        return false;
      }
View Full Code Here

  public IReputation getReputation(IPlayer player){
    return reputation.get(player);
  }
  @Override
  public void moveIn(IPlayer player){
    IReputation rep = new Reputation(this,player);
    reputation.put(player, rep);
    playersContributions.put(player, new Contributions());
  }
View Full Code Here

TOP

Related Classes of ch.sahits.game.openpatrician.model.personal.IReputation

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.