public PauseState(GameManager manager) : base(manager) { bg = manager.LoadTexture("title"); mainMenu = new Menu(3); mainMenu.AddItem("Continue", "resume"); mainMenu.AddItem("Quit", "quit"); }
public IntroState(GameManager manager) : base(manager) { bg = manager.LoadTexture("title"); mainMenu = new Menu(); mainMenu.AddItem("New Adventurer", "new"); //mainMenu.AddItem("Continue", "continue"); mainMenu.AddItem("Quit", "quit"); }
public InventoryState(Player Player, GameManager manager) : base(manager) { player = Player; mnu_actions = new Menu(); mnu_actions.AddItem("Inventory", "inventory"); mnu_actions.AddItem("Equip", "equip"); mnu_actions.AddItem("Use", "use"); mnu_actions.AddItem("Drop", "drop"); mnu_actions.AddItem("Read", "read"); onSecondaryList = false; }
public void MakeInventoryList(string filter) { mnu_inv = new Menu(); List<Item> inv = player.inventory.Items; if (filter == "equippable") inv = inv.Where(p => p.Type == ItemType.Weapon || p.Type == ItemType.Armor).ToList(); else if (filter == "useable") inv = inv.Where(p => p.Type == ItemType.Potion || p.Type == ItemType.Wand).ToList(); else if (filter == "readable") inv = inv.Where(p => p.Type == ItemType.Scroll).ToList(); else if (filter == "edible") inv = inv.Where(p => p.Type == ItemType.Food).ToList(); for (int i = 0; i < inv.Count; i++) { mnu_inv.AddItem(inv[i].Name, inv[i]); } }