Ejemplo n.º 1
0
        public void AddItem(string name, cItem item)
        {
            if (this.items.ContainsKey(name))
            {
                this.items[name].HandleAlreadyHave(item);
                return;
            }

            this.items.Add(name, item);
        }
Ejemplo n.º 2
0
        public bool Switch(string to_name)
        {
            if (this.items.ContainsKey(to_name))
            {
                currentItem = items[to_name];
                return(true);
            }

            return(false);
        }
Ejemplo n.º 3
0
 public abstract void HandleAlreadyHave(cItem item);