Class UnitRoutePlanner.LandCosts

  • All Implemented Interfaces:
    RoutePlanner.Costs
    Enclosing class:
    UnitRoutePlanner

    public static class UnitRoutePlanner.LandCosts
    extends java.lang.Object
    implements RoutePlanner.Costs
    Cost function for overland movement. Accounts for roads and the movement range of the unit provided in the constructor.
    Author:
    stm
    • Constructor Summary

      Constructors 
      Constructor Description
      LandCosts​(Unit unit)
      Creates costs for a unit on land.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void increase​(Region region, Region region2)
      Increase the costs after movement from region to region2.
      boolean isExhausted()
      Return true if enough movement for one week has been added.
      void reset()
      Set costs to zero, starting a new leg
      • Methods inherited from class java.lang.Object

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