public Ship(eShipType type) {
        this.type = type;
        switch (type) {
            case aircraftcarrier:
                size = 5;
                break;
            case battleship:
                size = 4;
                break;
            case destroyer:
                size = 3;
                break;
            case submarine:
                size = 3;
                break;
            case patrolboat:
                size = 2;
                break;
            default:
                size = 0;
        }
        fields = new ArrayList<>();
    }