Exemplo n.º 1
0
        // UNLOCK DOOR
        public void OpenItem(Player user, ContainerItem item, Door clickedDoor)
        {
            ucItemOpen itemOpenControl = new ucItemOpen(user, item, clickedDoor, this);

            this.roomPanel.Controls.Add(itemOpenControl);
            ItemOpen = itemOpenControl;
            itemOpenControl.Show();
            itemOpenControl.BringToFront();
        }
Exemplo n.º 2
0
        // GIVE CHARACTER ITEM
        public void OpenItem(Player user, ContainerItem item, Character character)
        {
            ucItemOpen itemOpenControl = new ucItemOpen(user, item, ActiveRoom, this, character);

            this.roomPanel.Controls.Add(itemOpenControl);
            ItemOpen = itemOpenControl;
            itemOpenControl.Show();
            itemOpenControl.BringToFront();
        }
Exemplo n.º 3
0
 public void PutOutFire(Player User, Room room, Item item, ContainerItem containerItem, frmGame mainForm)
 {
     if (User.HasBriefcase)
     {
         ucItemOpen itemOpenControl = new ucItemOpen(User, User.Briefcase, room, mainForm, item);
         mainForm.Controls.Add(itemOpenControl);
         itemOpenControl.Show();
         itemOpenControl.BringToFront();
     }
     else
     {
         mainForm.PlayerThinking("I dont have anything to use on this");
     }
 }