📄 wall.java
字号:
import java.awt.*;
public class Wall {
int x, y, w, h;
TankClient tc;
public Wall(int x, int y, int w, int h, TankClient tc)
{
this.h = h;
this.tc = tc;
this.w = w;
this.x = x;
this.y = y;
}
public void draw(Graphics g)
{
g.fillRect(x, y, w, h);
}
public Rectangle getRect()
{
return new Rectangle(x,y,w,h);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -