epoliceforce.java
来自「2004年robotcup世界冠军源代码」· Java 代码 · 共 54 行
JAVA
54 行
package MRL.Police;import yab.agent.object.*;import yab.agent.*;import yab.io.object.BasePoliceForce;import java.util.*;import MRL.Utilities.Partitioning.Partition;public class EPoliceForce extends PoliceForce { public EPoliceForce(int id, DisasterSpace world) { super(id, world); } public final List reportedBlockades = new ArrayList(); public final List reportedBlockadesIP = new ArrayList(); public final List reportedRoads = new ArrayList(); public final Set totalReportedRoads = new HashSet(); public final Set totalReportedPaths = new HashSet(); public final Set totalReportedPathsIP = new HashSet(); public boolean toReport = false; public final Map polPartMap = new HashMap(); public Partition prevWorkingPartition = null; public final Collection openPathBuildings = new HashSet(); public final List freePolices = new ArrayList(); public final BlockData blockData = new BlockData(this); public final TaskHandler taskHandler = new TaskHandler(this); public int task() { return taskHandler.myCurrentTask(); } public int taskStartTime(){ return taskHandler.myCurrentTaskTime(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?