Class GuaranteeManager

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

public class GuaranteeManager extends Object
外交保卫管理器
  • Method Details

    • getInstance

      public static GuaranteeManager getInstance()
    • establishGuarantee

      public boolean establishGuarantee(String guarantorNation, String protectedNation)
      建立保卫关系
    • removeGuarantee

      public boolean removeGuarantee(String guarantorNation, String protectedNation)
      取消保卫关系
    • hasGuarantee

      public boolean hasGuarantee(String guarantorNation, String protectedNation)
      检查是否存在保卫关系
    • getGuaranteedNations

      public List<String> getGuaranteedNations(String guarantorNation)
      获取保卫国保卫的所有国家
    • getGuarantors

      public List<String> getGuarantors(String protectedNation)
      获取保护某个国家的所有保卫国
    • payMaintenanceCost

      public boolean payMaintenanceCost(GuaranteeRelation relation)
      支付维持费用
    • checkAndPayMaintenance

      public void checkAndPayMaintenance()
      检查并支付所有保卫关系的维持费用
    • handleBetrayal

      public void handleBetrayal(String guarantorNation, String protectedNation)
      处理违约惩罚
    • isProtected

      public boolean isProtected(String nationName)
      检查国家是否受保护
    • getActiveGuarantees

      public List<GuaranteeRelation> getActiveGuarantees()
      获取所有激活的保卫关系
    • clearNationGuarantees

      public void clearNationGuarantees(String nationName)
      清除国家的所有保卫关系
    • getGuarantee

      public GuaranteeRelation getGuarantee(String guarantorNation, String protectedNation)
      获取保卫关系
    • loadAll

      public void loadAll()
      加载所有保卫关系