package project;
import Collection.*;

abstract class Weapon extends StageItem implements Attackable, Fireable, Item, WeaponInfo {
  
  protected int AttackPower;
  protected int Shots;
  
  public Weapon(Player1 p, int x, int y, int a, int s) {
	super(p, x, y);
	AttackPower = a;
	Shots = s;
  } //constructor Weapon
  
  public boolean MoreShot() { return Shots > 0; }
  public void update(){}
  public void Fire() throws NoShotException{}
  public int getAttackPower() { return AttackPower; }
  abstract void getPickedUp(ItemEncounter i);
    
} //class Weapon