public Player() : base() { _position = Vector2.Zero; _stand = new Image(); _ammo = Upgrades.ammunition.Fire; damageModifier = 0; speedModifier = 1; }
public static Projectile Shoot(Vector2 _position, int damageMod, Upgrades.ammunition x, bool isAlly = false) { if (Upgrades.ammunition.Laser == x) { return(CreateLaserShot(_position, damageMod, isAlly)); } else if (Upgrades.ammunition.Fire == x) { return(CreateFireShot(_position, damageMod, isAlly)); } else if (Upgrades.ammunition.Gun == x) { return(CreateGunShot(_position, damageMod, isAlly)); } return(null); }
public void upgradeWeapon(Upgrades.ammunition x) { ammo = x; }