src/Explode.java

(完整代码) 743B

import java.awt.*;

public class Explode {

	int x, y;
	private boolean live = true;
	int[] diameter = { 4, 7, 12, 18, 26, 32, 49, 60, 92, 60, 30, 14, 6 };
	int step = 0;

	private TankClient tc;

	public Explode(int x, int y, TankClient tc) {
		this.x = x;
		this.y = y;
		this.tc = tc;//该代码下载自www.51Aspx.com
	}

	public void draw(Graphics g) {
		if (!live) {
			tc.explodes.remove(this);
			return;
		}
		if (step == diameter.length) {
			live = false;
			step = 0;
			return;
		}
		Color c = g.getColor();
		g.setColor(Color.ORANGE);
		g.fillOval(x - diameter[step] / 2 + Tank.WIDTH / 2, y - diameter[step]
				/ 2 + Tank.HEIGHT / 2, diameter[step], diameter[step]);
		g.setColor(c);
		step++;
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。