Exemplo n.º 1
0
 public void execute(Player p, Item origin, Item target)
 {
     if(!p.removeItem(origin))
         p.room.removeItem(origin);
 }
Exemplo n.º 2
0
            public void execute(Player p, Item origin, Item target)
            {
                if (!p.removeItem(origin))
                    throw new InvalidDataException("You don't have this item in your inventory.");

                target.addChild(origin);
            }