Class War
java.lang.Object
net.chen.legacyLand.war.War
战争数据模型
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttacker(WarParticipant participant) 添加攻击方参与者voidaddDefender(WarParticipant participant) 添加防守方参与者void结束战争int获取活跃的攻击方人数int获取活跃的防守方人数long获取战争持续时间(毫秒)boolean检查前哨战是否已维持1小时boolean检查是否超过1小时voidstart()开始战争
-
Constructor Details
-
War
-
-
Method Details
-
addAttacker
添加攻击方参与者 -
addDefender
添加防守方参与者 -
getActiveAttackerCount
public int getActiveAttackerCount()获取活跃的攻击方人数 -
getActiveDefenderCount
public int getActiveDefenderCount()获取活跃的防守方人数 -
start
public void start()开始战争 -
end
-
getDuration
public long getDuration()获取战争持续时间(毫秒) -
isOverOneHour
public boolean isOverOneHour()检查是否超过1小时 -
isOutpostReady
public boolean isOutpostReady()检查前哨战是否已维持1小时
-