Example #1
0
        public void movePlayer(Player player, List<Room> rooms)
        {
            Random rand = new Random();
            int i = rand.Next(0, rooms.Count - 1);

            //Console.WriteLine("Bat.movePlayer() : " + name + " is carrying " + player.name + " to Room " + rooms[i].id);
            player.move(rooms[i]);
            Console.WriteLine("You watch the superbat fly away into the darkness...");
            i = rand.Next(0, rooms.Count - 1); // make the bat move somewhere new as well
            move(rooms[i]);
        }