gui/src/main/java/com/github/kuangcp/tank/domain/Tank.java
Tank
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@Slf4j
public abstract class Tank extends AbstractLoopEvent implements VisualItem {
int x; // 坦克中心的横坐标
int y; // 坦克中心的纵坐标
int direct = 0; // 初始方向
Method drawSelf
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void drawSelf(Graphics g) {
//系统画图函数的参照点 (全是取的左上角)
int topX, topY;
switch (direct) {