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

📄 b_cankick_r.java

📁 一个多机器人的仿真平台
💻 JAVA
字号:
/* * b_CanKick_r.java */package EDU.gatech.cc.is.clay;import java.lang.*;import EDU.gatech.cc.is.abstractrobot.KickActuator;import EDU.gatech.cc.is.util.Vec2;/** * Report whether we are in a position to kick the ball. * <P> * For detailed information on how to configure behaviors, see the * <A HREF="../clay/docs/index.html">Clay page</A>. * <P> * <A HREF="../COPYRIGHT.html">Copyright</A> * (c)1997, 1998 Tucker Balch * * @author Tucker Balch * @version $Revision: 1.1 $ */public class b_CanKick_r extends NodeBoolean	{	/** 	 * Turn debug printing on or off.	 */	public static final boolean DEBUG = Node.DEBUG;	private KickActuator abstract_robot;	/**	 * Instantiate a b_CanKick_r schema.	 * @param ar KickActuator, the abstract_robot object 	 * that provides hardware support.	 */	public b_CanKick_r(KickActuator ar)		{		if (DEBUG) System.out.println("b_CanKick_r: instantiated");		abstract_robot = ar;		}	/**	 * Return true if we can kick the ball.	 * @param timestamp long, only get new 	 *	information if timestamp > than last call or timestamp == -1.	 * @return true if we can kick the ball.	 */	public boolean Value(long timestamp)		{		if (DEBUG) System.out.println("b_CanKick_r: Value()");		return(abstract_robot.canKick(timestamp));		}        }

⌨️ 快捷键说明

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