public Potion getPotion(Potion.potionType type) { switch (type) { case Potion.potionType.HEALTH: return(this.healthpotion); case Potion.potionType.SPEED: return(this.speedpotion); case Potion.potionType.RESISTANCE: return(this.resistancepotion); } return(null); }
public int getPotionQuanitity(Potion.potionType type) { switch (type) { case Potion.potionType.HEALTH: return(this.healthpotion.GetQuantity()); case Potion.potionType.SPEED: return(this.speedpotion.GetQuantity()); case Potion.potionType.RESISTANCE: return(this.resistancepotion.GetQuantity()); } return(0); }