⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 civilianagent.java

📁 2004年robotcup世界冠军源代码
💻 JAVA
字号:
// Copyright (C) 2002 Takeshi Morimoto <morimoto@takopen.cs.uec.ac.jp>// All rights reserved.package MRL;import java.net.*;import yab.agent.*;import yab.agent.object.*; //saeed 85-2-3public class CivilianAgent extends AbstractCivilianAgent {    public CivilianAgent(InetAddress address, int port) {        super(address, port);    }    protected void act() throws ActionCommandException {        if (self().motionlessPosition() instanceof Refuge)            rest();        move(world.refuges);    }    /**     * @todo this method is for test must be removed     * @param sender RealObject     * @param message String     */    protected void hear(RealObject sender,String message){    }    protected void hearTell(RealObject sender,String msg) {        // do nothing	}    protected void hearSay(RealObject sender,String msg) {        // do nothing    }}

⌨️ 快捷键说明

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