Exemple #1
0
 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;
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 public Thorwor(Maze maze)
     : base(maze, ConsoleColor.Red, 3, 6, 'T', 20)
 {
 }
Exemple #4
0
 public WizardOfWor(Maze maze)
     : base(maze, ConsoleColor.Magenta, 9, 10, (char)2, 15)
 {
 }
Exemple #5
0
 public Garwor(Maze maze)
     : base(maze, ConsoleColor.Yellow, 2, 5, 'G', 5)
 {
 }
Exemple #6
0
 public Worluk(Maze maze)
     : base(maze, ConsoleColor.White, 5, 8, (char)1, 0)
 {
 }
Exemple #7
0
 public Burwor(Maze maze)
     : base(maze, ConsoleColor.Green, 1, 3, 'B', 0)
 {
 }