Example #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);
        }
Example #2
0
        public bool Switch(string to_name)
        {
            if (this.items.ContainsKey(to_name))
            {
                currentItem = items[to_name];
                return(true);
            }

            return(false);
        }
Example #3
0
 public abstract void HandleAlreadyHave(cItem item);