using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mmoRL { public class Monster : Creature { public int monsterType = 1; public Monster(int monsterType, int x = 0, int y = 0) { this.monsterType = monsterType; switch (monsterType) { case 1: this.name = "Kobold"; this.image = new Image("k", ConsoleColor.DarkRed); break; case 2: this.name = "Orc"; this.image = new Image("o", ConsoleColor.Green); break; case 3: this.name = "Giant"; this.image = new Image("G", ConsoleColor.Yellow); break; case 4: this.name = "Crab"; this.image = new Image("c", ConsoleColor.Red); break; case 5: this.name = "Sand Dragon"; this.image = new Image("D", ConsoleColor.DarkYellow); break; case 6: this.name = "Earth Dragon"; this.image = new Image("D", ConsoleColor.DarkGray); break; } this.HP = this.maxHP; this.x = x; this.y = y; } public override string ToString() { return this.name + " at (" + this.x + ", " + this.y + ")"; } } }