package edu.stuy.starlorn.upgrades;

/*
 * Upgrades that modify a ship's gun/shots
 */
public class GunUpgrade extends Upgrade {


    public GunUpgrade() {
        super();
    }

    /*
     * Returns the number of shots this upgrade allows for.
     * Highest should be chosen
     */
    public int getNumShots() {
        return 1;
    }
    /*
     * Gives an angle this ship should aim at, measured in radians,
     * From the vertical axis.
     * Called for each shot, so it should probably keep track of which one it's at.
     * Should be chosen based on getNumShots
     */
    public double getAimAngle() {
        return 0;
    }
    /*
     * Gives a number of coordinates to offset the shot's origin
     * on the X axis from wherever shots would normally come from.
     * Not garunteed to return the same thing each time, should probably keep track of which shot this is (like getAimAngle)
     * Should be chosen based off of getNumShots
     */
    public int getXOffset() {
        return 0;
    }
    /* 
     * Given the amount of damage that would be done, tell how much should be done.
     * Multipliers, buffs, etc go here.
     * All should be applied
     */
    public int getDamage(int damage) {
        return damage;
    }
}

@@ -1249,10 +1249,129 @@
 ;%0A    %7D%0A
+    /*%0A     * Get the cooldown between shots, in ticks%0A     */%0A    public int getCooldown() %7B%0A        return 10;%0A    %7D%0A
 %7D%0A

Add Cooldown to GunUpgrade