Class DiplomacyManager
java.lang.Object
net.chen.legacyLand.nation.diplomacy.DiplomacyManager
外交管理器
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearNationRelations(String nationName) 清除国家的所有外交关系booleandeclareWar(String aggressor, String target) 宣战booleanformAlliance(String nation1, String nation2, boolean isDefensive) 结盟获取国家的所有盟友getEnemies(String nationName) 获取国家的所有敌人static DiplomacyManagergetNationRelations(String nationName) 获取国家的所有外交关系getRelation(String nation1, String nation2) 获取两国之间的关系boolean检查两国是否是盟友boolean检查两国是否处于战争状态boolean和平(恢复中立)booleanremoveRelation(String nation1, String nation2) 移除外交关系(恢复中立)booleansetRelation(String nation1, String nation2, RelationType type) 设置外交关系booleansignTechAgreement(String nation1, String nation2) 签订科技协议booleansignTradeAgreement(String nation1, String nation2) 签订贸易协议
-
Method Details
-
getInstance
-
setRelation
设置外交关系 -
getRelation
获取两国之间的关系 -
removeRelation
-
getNationRelations
获取国家的所有外交关系 -
getAllies
-
getEnemies
-
isAtWar
-
isAllied
-
declareWar
-
makePeace
-
formAlliance
-
signTradeAgreement
-
signTechAgreement
-
clearNationRelations
清除国家的所有外交关系
-