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

📄 enemyinfo.java

📁 java机器人对战平台robocode下的一个机器人的源码
💻 JAVA
字号:
package wilson;

class EnemyInfo 
{
	public String name;
	public double absBearing;
	public double bearing;//the angle between my heading and the enemy's direction
	public double heading;
	public long cTime;
	public double velocity;
	public double x,y;
	public double distance;
	public double energy;
	public double headingChange;
	public double energyChange;
	public double velocityChange;
	public double xChange;
	public double yChange;
	public double estimateVelocity;
	public double estimateHeading;
	//public double timeChange;
	
	public Object clone(){
		EnemyInfo e = new EnemyInfo();
		e.name = this.name;
		e.absBearing = this.absBearing;
		e.bearing = this.bearing;
		e.heading = this.heading;
		e.cTime = this.cTime;
		e.velocity = this.velocity;
		e.x = this.x;
		e.y = this.y;
		e.distance = this.distance;
		e.energy = this.energy;
		e.headingChange = this.headingChange;
		e.energyChange = this.energyChange;
		e.velocityChange = this.velocityChange;
		e.xChange = this.xChange;
		e.yChange = this.yChange;
		e.estimateVelocity = this.estimateVelocity;
		e.estimateHeading = this.estimateHeading;
		return e;
	}
}			

⌨️ 快捷键说明

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