Class GuaranteeRelation

java.lang.Object
net.chen.legacyLand.nation.diplomacy.GuaranteeRelation

public class GuaranteeRelation extends Object
外交保卫关系
  • Constructor Details

    • GuaranteeRelation

      public GuaranteeRelation(String guarantorNation, String protectedNation)
    • GuaranteeRelation

      public GuaranteeRelation(String guarantorNation, String protectedNation, long establishedTime, long lastMaintenanceTime, boolean active)
      用于从数据库加载的构造函数
  • Method Details

    • involves

      public boolean involves(String nationName)
      检查是否涉及指定国家
    • needsMaintenance

      public boolean needsMaintenance()
      检查是否需要支付维持费用(每小时)
    • updateMaintenanceTime

      public void updateMaintenanceTime()
      更新维持费用支付时间