package com.kduda.battleships.models.units;

import com.kduda.battleships.models.units.Unit;

public class Ship implements Unit {
    public int type;
    public boolean vertical = true;
    private int health;

    public Ship(int type, boolean vertical) {
        this.type = type;
        this.vertical = vertical;
        this.health = type;
    }

    @Override
    public boolean isAlive() {
        return this.health > 0;
    }

    @Override
    public void hit() {

    }
}

@@ -42,57 +42,8 @@
 s;%0A%0A
-import com.kduda.battleships.models.units.Unit;%0A%0A
 publ

Optimize imports