Exemplo n.º 1
0
        //public List<Potion> getActivePotions() {
        //    List<Potion> rtn = new List<Potion>();
        //    foreach (string name in status.Properties) {
        //        Potion loaded = Potion.createPotion((DatabaseObject)status[name]);
        //        if (!loaded.expired) rtn.Add(loaded);
        //    }
        //    return rtn;
        //}

        public bool hasActivePotion(Potion potion)
        {
            return(this.status.Contains(potion.name) && !this.isExpired(this.status.GetObject(potion.name)));
        }
Exemplo n.º 2
0
 public void addPotion(Potion potion, Callback <List <Potion> > callback)
 {
     this.addPotion(potion, callback, this.status);
 }
Exemplo n.º 3
0
 public void activatePotion(Potion potion, Callback <List <Potion> > callback)
 {
     //potion.activate();
     //this.addPotion(potion, callback);
 }