コード例 #1
0
 public void DrawWithEffect(RLConsole inventoryConsole, RLConsole mapConsole)
 {
     Draw(inventoryConsole);
     if (Potions.Count() > 0)
     {
         Potion potion = Potions[Selection.SelectedItemIndex] as Potion;
         potion.Draw(inventoryConsole, 48, 6);
         if (potion.EffectCode == 2)
         {
             CellSelection.HighlightMonstersAround(Game.Player.Coord, 5, mapConsole);
         }
     }
 }
コード例 #2
0
        public void Draw(RLConsole console)
        {
            console.Print(Game.GetProportionnalSizeInContainer(25, console.Width), 3, "Clefs", Colors.Text);
            int j = 5;

            foreach (Item item in Items)
            {
                if (item.Name == "Clef")
                {
                    item.Draw(console, Game.GetProportionnalSizeInContainer(25, console.Width), j);
                    j++;
                }
            }

            console.Print(45, 3, "Potions", Colors.Text);
            CellSelection.CreateRoomWalls(47, 5, 3, 3, 186, 205, 201, 187, 200, 188, console);
        }