ambulanceteam.java

来自「2004年robotcup世界冠军源代码」· Java 代码 · 共 72 行

JAVA
72
字号
// Copyright (C) 2002 Takeshi Morimoto <morimoto@takopen.cs.uec.ac.jp>// All rights reserved.// Edit By Omid AmirGhiasvand// 2006-4-23// 1:50 AMpackage yab.agent.object;import yab.agent.DisasterSpace;import yab.io.object.*;public class AmbulanceTeam extends Humanoid{    public AmbulanceTeam(int id, DisasterSpace world)    {        super(id, new BaseAmbulanceTeam(id), world);    }    private BaseAmbulanceTeam obj()    {        return (BaseAmbulanceTeam) object;    }    public Humanoid myAssignedTarget=null;    public Humanoid tempTarget=null;    public Humanoid mySelectedTarget=null;    private int requestForTargetTime=-1;   // for ambulance agent    private int targetAssighnmentTime=-1;    private int getFreeTime=-1;    private int targetAchivementTime=-1;    public int getTargetAchivementTime()    {        return targetAchivementTime;    }    public void setTargetachivementTime(int t)    {        targetAchivementTime=t;    }    public void setTimeToGetFree(int t)    {        getFreeTime=t;    }    public int getTimeToGetFree()    {        return getFreeTime;    }    public void setTargetAssignmentTime(int t)    {        targetAssighnmentTime=t;    }    public int getTargetAssignmentTime()    {        return targetAssighnmentTime;    }    public void setRequestForTargetTime(int t)    {      requestForTargetTime=t;    }    public int getRequestForTargetTime()    {      return requestForTargetTime;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?