Class GuaranteeManager
java.lang.Object
net.chen.legacyLand.nation.diplomacy.GuaranteeManager
外交保卫管理器
-
Method Summary
Modifier and TypeMethodDescriptionvoid检查并支付所有保卫关系的维持费用voidclearNationGuarantees(String nationName) 清除国家的所有保卫关系booleanestablishGuarantee(String guarantorNation, String protectedNation) 建立保卫关系获取所有激活的保卫关系getGuarantee(String guarantorNation, String protectedNation) 获取保卫关系getGuaranteedNations(String guarantorNation) 获取保卫国保卫的所有国家getGuarantors(String protectedNation) 获取保护某个国家的所有保卫国static GuaranteeManagervoidhandleBetrayal(String guarantorNation, String protectedNation) 处理违约惩罚booleanhasGuarantee(String guarantorNation, String protectedNation) 检查是否存在保卫关系booleanisProtected(String nationName) 检查国家是否受保护voidloadAll()加载所有保卫关系booleanpayMaintenanceCost(GuaranteeRelation relation) 支付维持费用booleanremoveGuarantee(String guarantorNation, String protectedNation) 取消保卫关系
-
Method Details
-
getInstance
-
establishGuarantee
-
removeGuarantee
-
hasGuarantee
-
getGuaranteedNations
-
getGuarantors
-
payMaintenanceCost
支付维持费用 -
checkAndPayMaintenance
public void checkAndPayMaintenance()检查并支付所有保卫关系的维持费用 -
handleBetrayal
-
isProtected
检查国家是否受保护 -
getActiveGuarantees
获取所有激活的保卫关系 -
clearNationGuarantees
清除国家的所有保卫关系 -
getGuarantee
获取保卫关系 -
loadAll
public void loadAll()加载所有保卫关系
-