Пример #1
0
 public void DrawStats(RLNET.RLConsole console, int yPosition)
 {
     console.Print(1, yPosition, $"Name:     {Name}", Colors.Text);
     console.Print(1, ++yPosition, $"Health:     {Health}", Colors.Text);
     AddHealthBar(console, 10, yPosition);
     console.Print(1, ++yPosition, $"Attack:     {Attack}", Colors.Text);
     console.Print(1, ++yPosition, $"Defense:     {Defense}", Colors.Text);
     console.Print(1, ++yPosition, $"Gold:     {Gold}", Colors.Text);
 }
Пример #2
0
        public void DrawStats(RLNET.RLConsole statConsole, int position)
        {
            // Y = 13 is below the player stats
            int yPosition = 13 + (position * 2);

            statConsole.Print(1, yPosition, Symbol.ToString(), Color);

            AddHealthBar(statConsole, 3, yPosition);

            statConsole.Print(2, yPosition, $": {Name}", Palette.DbLight);
        }
Пример #3
0
 public void Draw(RLNET.RLConsole console)
 {
     console.Clear();
     string[] lines = _lines.ToArray();
     for (int i = 0; i < lines.Length; i++)
     {
         console.Print(1, i + 1, lines[i], RLNET.RLColor.White);
     }
 }