Kuangcp/JavaBase

View on GitHub
gui/src/main/java/com/github/kuangcp/tank/domain/Tank.java

Summary

Maintainability
A
3 hrs
Test Coverage

Tank has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

@Slf4j
public abstract class Tank extends AbstractLoopEvent implements VisualItem {
    int x;          // 坦克中心的横坐标
    int y;          // 坦克中心的纵坐标
    int direct = 0;   // 初始方向
Severity: Minor
Found in gui/src/main/java/com/github/kuangcp/tank/domain/Tank.java - About 2 hrs to fix

    Method drawSelf has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public void drawSelf(Graphics g) {
            //系统画图函数的参照点 (全是取的左上角)
            int topX, topY;
    
            switch (direct) {
    Severity: Minor
    Found in gui/src/main/java/com/github/kuangcp/tank/domain/Tank.java - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status