// // USE METHODS // public void Eat(Player User, Room room, Item item, ContainerItem containerItem, frmGame mainForm) { if (!room.RemoveItem(room, item)) { DropFromContainer(item, containerItem); } mainForm.PlayerThinking("Yummy."); }
public void Fill(Player User, Room room, Item item, ContainerItem containerItem, frmGame mainForm) { if (room.Name != "Room 2") { mainForm.PlayerThinking("No faucet available in this room"); } else { item.ItemSlot.SlottedItem = item.TransformsTo; } }
public void DropFromInventory(Player user, Room room, Item item, frmGame mainForm) { bool isAdded = room.AddItem(room, item); if (isAdded) { user.RemoveItem(user, item); } else { mainForm.PlayerThinking("There is no more space in this room"); } }
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"); } }
public void CheckTime(Player User, Room room, Item item, ContainerItem containerItem, frmGame mainForm) { mainForm.PlayerThinking("Time is " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString()); }