Class EresseaGameSpecificRules

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canLandInRegion​(Ship ship, Region region)
      This method checks if a ship can land in a specific region
      Unit getMaintainer​(Building b)
      Returns the unit that pays maintenance for a building.
      java.lang.Integer getMaxEntertain​(Region region)
      Returns the amount of max entertainment in a specific region.
      int getMaxHorsesRiding​(Unit u)
      Returns the maximum number of horses the unit can handle while riding.
      int getMaxHorsesWalking​(Unit u)
      Returns the maximum number of horses the unit can handle while walking.
      java.lang.Integer getMaxOldEntertain​(Region region)
      Returns the amount of max entertainment in a specific region.
      int getMaxTrade​(Region region)
      Returns the trade volume of the region
      java.lang.Integer getMaxWorkers​(Region region)
      Returns the amount of max workers in a specific region.
      int getPeasantMaintenance​(Region region)
      Returns the amount of silver that peasants need to survive.
      int getRecruitmentLimit​(Unit u, Race race)
      Returns the maximum possible number of recruits that the specified unit can recruit in the specified race.
      Rules getRules()
      Returns the value of rules.
      int getShipRange​(Ship s)
      Returns the current maximum range of a ship.
      int getSilverPerWeightUnit()
      Returns the number of silver pieces per weight unit (GE).
      int getTeachFactor()
      Returns the amount of students that one teacher can teach.
      int getWage​(Region region, Race race)
      Calculates the wage for the units of a certain faction in the specified region.
      boolean isAllied​(Faction faction, Faction ally, int aState)
      Returns true if the faction has the specified HELP state to an ally.
      boolean isCastle​(UnitContainerType type)
      Returns true if the type is a castle (Befestigung, Turm, ...)
      boolean isPooled​(Unit unit, ItemType type)
      Returns true if the specified unit can access the pool for the specified item.
      boolean isPooled​(Unit unit, StringID type)
      Returns true if the specified unit can access the pool for the specified item.
      boolean isShip​(Ship ship)
      Returns true, if the given ship is really a ship, because f.e. in Allanon a Karawane is marked as a ship, but it's travelling on land.
      boolean isToroidal()
      FIXME (stm) implement or not?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait