상속: MonoGameProgramFactory
예제 #1
0
 public ThirdMapFactory()
 {
     mapType = MapType.EnemyMap;
     width = 20;
     height = 10;
     initial_silicoins = 1000;
     total_spawn_weight = 100;
     player1 = GlobalAccessors.mPlayer1;
     player2 = new PlayerAI("AI");
     player1_spawns = new List<Point>();
     player2_programs = new List<Tuple<ProgramFactory, Point, IEnumerable<Point>>>();
     player1_spawns.Add(new Point(0, 2));
     player1_spawns.Add(new Point(0, 3));
     player1_spawns.Add(new Point(0, 6));
     player1_spawns.Add(new Point(0, 7));
     SwarmerFactory swarmerFactory = new SwarmerFactory();
     AddPlayer2Program(swarmerFactory, new Point(19, 1));
     AddPlayer2Program(swarmerFactory, new Point(19, 2));
     AddPlayer2Program(swarmerFactory, new Point(19, 4));
     AddPlayer2Program(swarmerFactory, new Point(19, 5));
     AddPlayer2Program(swarmerFactory, new Point(19, 7));
     AddPlayer2Program(swarmerFactory, new Point(19, 8));
     unavailableNodes = new List<Point>();
     unavailableNodes.Add(new Point(3, 3));
     unavailableNodes.Add(new Point(3, 4));
     unavailableNodes.Add(new Point(3, 5));
     unavailableNodes.Add(new Point(3, 6));
     unavailableNodes.Add(new Point(7, 2));
     unavailableNodes.Add(new Point(6, 1));
     unavailableNodes.Add(new Point(5, 0));
     unavailableNodes.Add(new Point(5, 9));
     unavailableNodes.Add(new Point(6, 8));
     unavailableNodes.Add(new Point(7, 7));
     unavailableNodes.Add(new Point(9, 4));
     unavailableNodes.Add(new Point(9, 5));
     unavailableNodes.Add(new Point(10, 4));
     unavailableNodes.Add(new Point(10, 5));
     unavailableNodes.Add(new Point(16, 3));
     unavailableNodes.Add(new Point(16, 4));
     unavailableNodes.Add(new Point(16, 5));
     unavailableNodes.Add(new Point(16, 6));
     unavailableNodes.Add(new Point(12, 2));
     unavailableNodes.Add(new Point(13, 1));
     unavailableNodes.Add(new Point(13, 0));
     unavailableNodes.Add(new Point(12, 7));
     unavailableNodes.Add(new Point(13, 8));
     unavailableNodes.Add(new Point(14, 9));
 }
예제 #2
0
 public FourthMapFactory()
 {
     mapType = MapType.DataMap;
     width = 10;
     height = 10;
     initial_silicoins = 900;
     total_spawn_weight = 40;
     player1 = GlobalAccessors.mPlayer1;
     player2 = new PlayerAI("AI");
     player1_spawns = new List<Point>();
     player2_programs = new List<Tuple<ProgramFactory, Point, IEnumerable<Point>>>();
     player1_spawns.Add(new Point(0, 9));
     SwarmerFactory swarmerFactory = new SwarmerFactory();
     AddPlayer2Program(swarmerFactory, new Point(2, 8));
     AddPlayer2Program(swarmerFactory, new Point(6, 4));
     AddPlayer2Program(swarmerFactory, new Point(6, 6));
     WatcherFactory watcherFactory = new WatcherFactory();
     AddPlayer2Program(watcherFactory, new Point(2, 3));
     AddPlayer2Program(watcherFactory, new Point(4, 4));
     AddPlayer2Program(watcherFactory, new Point(6, 1));
     unavailableNodes = new List<Point>();
     unavailableNodes.Add(new Point(1, 1));
     unavailableNodes.Add(new Point(1, 2));
     unavailableNodes.Add(new Point(1, 3));
     unavailableNodes.Add(new Point(1, 4));
     unavailableNodes.Add(new Point(1, 5));
     unavailableNodes.Add(new Point(1, 6));
     unavailableNodes.Add(new Point(1, 7));
     unavailableNodes.Add(new Point(1, 8));
     unavailableNodes.Add(new Point(1, 9));
     unavailableNodes.Add(new Point(2, 9));
     unavailableNodes.Add(new Point(3, 0));
     unavailableNodes.Add(new Point(3, 1));
     unavailableNodes.Add(new Point(3, 3));
     unavailableNodes.Add(new Point(3, 4));
     unavailableNodes.Add(new Point(3, 5));
     unavailableNodes.Add(new Point(3, 6));
     unavailableNodes.Add(new Point(3, 7));
     unavailableNodes.Add(new Point(3, 9));
     unavailableNodes.Add(new Point(4, 3));
     unavailableNodes.Add(new Point(4, 7));
     unavailableNodes.Add(new Point(5, 1));
     unavailableNodes.Add(new Point(5, 2));
     unavailableNodes.Add(new Point(5, 3));
     unavailableNodes.Add(new Point(5, 4));
     unavailableNodes.Add(new Point(5, 5));
     unavailableNodes.Add(new Point(5, 7));
     unavailableNodes.Add(new Point(5, 9));
     unavailableNodes.Add(new Point(6, 2));
     unavailableNodes.Add(new Point(6, 5));
     unavailableNodes.Add(new Point(6, 9));
     unavailableNodes.Add(new Point(7, 0));
     unavailableNodes.Add(new Point(7, 2));
     unavailableNodes.Add(new Point(7, 3));
     unavailableNodes.Add(new Point(7, 5));
     unavailableNodes.Add(new Point(7, 6));
     unavailableNodes.Add(new Point(7, 7));
     unavailableNodes.Add(new Point(7, 8));
     unavailableNodes.Add(new Point(7, 9));
     unavailableNodes.Add(new Point(8, 0));
     unavailableNodes.Add(new Point(8, 6));
     unavailableNodes.Add(new Point(9, 2));
     unavailableNodes.Add(new Point(9, 3));
     unavailableNodes.Add(new Point(9, 4));
     unavailableNodes.Add(new Point(9, 8));
     unavailableNodes.Add(new Point(9, 9));
     silicoinNodes.Add(new Point(4, 9), 100);
     silicoinNodes.Add(new Point(6, 3), 100);
     silicoinNodes.Add(new Point(9, 0), 100);
     dataNodes.Add(new Point(8, 9));
 }