public Monster(Maze maze, ConsoleColor color, int minSpeed, int maxSpeed, char shape, int hidePercent) { this.maze = maze; this.rand = this.maze.getRandom(); this.color = color; this.minSpeed = minSpeed; this.maxSpeed = maxSpeed; this.shape = shape; this.hidePercent = hidePercent; this.hide = false; this.position = this.maze.getRandomPosition(); this.lastDirection = Direction.UP; }
private static void Main(string[] args) { Console.OutputEncoding = System.Text.Encoding.GetEncoding(1252); Random rand = new Random(); Dictionary<TypeOfMonsters, int> numberOfMonsters = new Dictionary<TypeOfMonsters,Int32>(); numberOfMonsters.Add(TypeOfMonsters.Burwor, 12); numberOfMonsters.Add(TypeOfMonsters.Garwor, 10); numberOfMonsters.Add(TypeOfMonsters.Thorwor, 8); numberOfMonsters.Add(TypeOfMonsters.Worluk, 4); numberOfMonsters.Add(TypeOfMonsters.WizardOfWor, 2); Maze maze = new Maze(rand, numberOfMonsters); maze.draw(); maze.start(); Console.ReadKey(); }
public Thorwor(Maze maze) : base(maze, ConsoleColor.Red, 3, 6, 'T', 20) { }
public WizardOfWor(Maze maze) : base(maze, ConsoleColor.Magenta, 9, 10, (char)2, 15) { }
public Garwor(Maze maze) : base(maze, ConsoleColor.Yellow, 2, 5, 'G', 5) { }
public Worluk(Maze maze) : base(maze, ConsoleColor.White, 5, 8, (char)1, 0) { }
public Burwor(Maze maze) : base(maze, ConsoleColor.Green, 1, 3, 'B', 0) { }