package edu.stuy.starlorn.upgrades;

public class DualShotUpgrade extends GunUpgrade {
    private boolean _right;

    public DualShotUpgrade() {
        super();
        _right = true;
    }

    @Override
    public int getNumShots() {
        return 2;
    }

    @Override
    public double getXOffset() {
        int direction = 0;
        if (_right) {
            _right = !_right;
            direction = 1;
        } else if (!_right) {
            _right = !_right;
            direction = -1;
        }
        return direction * 10;
    }
}

Add DualShotUpgrade, 2 shots next to each other.