Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }