static void WriteGenerals() { if (a > 0) { g = CreateGeneral.GeneralEasy(a); SetParams(g, 0); generals.Add(g); } if (b > 0) { g = CreateGeneral.GeneralEasy(b); SetParams(g, 0); generals.Add(g); } if (c > 0) { g = CreateGeneral.GeneralEasy(c); SetParams(g, 0); generals.Add(g); } if (d > 0) { g = CreateGeneral.GeneralEasy(d); SetParams(g, 0); generals.Add(g); } if (e > 0) { g = CreateGeneral.GeneralEasy(e); SetParams(g, 0); generals.Add(g); } if (f > 0) { g = CreateGeneral.GeneralEasy(f); SetParams(g, 0); generals.Add(g); } }
public static List <General> CreateEnemy(string levelName, int wave) { switch (levelName) { ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///ДОРОГА R0B-R62B///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62///ДОРОГА R0-R62/// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// case "R0B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R1B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R2B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R3B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R4B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R5B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R6B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R7B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R8B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R9B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R10B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R11B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R12B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R13B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R14B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R15B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R16B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R17B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R18B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R19B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R20B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R21B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R22B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R23B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R24B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R25B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R26B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R27B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R28B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R29B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R30B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R31B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R32B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R33B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R34B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R35B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R36B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R37B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R38B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R39B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R40B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R41B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R42B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R43B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R44B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R45B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R46B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R47B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R48B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R49B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R50B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R51B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R52B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R53B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R54B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R55B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R56B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R57B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R58B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R59B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R60B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R61B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; case "R62B": a = 1; b = 0; c = 0; d = 0; e = 0; f = 0; WriteGenerals(); break; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B///ПЕРЕКРЕСТКИ K0B-K6B/// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// case "K0B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K1B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K2B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K3B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K4B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K5B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; case "K6B": a = 1; b = 2; c = 3; d = 0; e = 0; f = 0; WriteGenerals(); break; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B///ДЕРЕВНЯ V0B-V18B/// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// case "V0B": a = 20; b = 6; c = 6; d = 6; e = 6; f = 60; WriteGenerals(); break; case "V1B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V2B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V3B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V4B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V5B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V6B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V7B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V8B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V9B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V10B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V11B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V12B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V13B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V14B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V15B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V16B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V17B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case "V18B": a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B///ГОРОД C1B-C6B/// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// case "C1B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; } break; case "C2B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; } break; case "C3B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: g = CreateGeneral.GeneralEasy(1); SetParams(g, 0); generals.Add(g); g = CreateGeneral.GeneralEasy(2); SetParams(g, 0); generals.Add(g); g = CreateGeneral.GeneralEasy(1); SetParams(g, 0); generals.Add(g); g = CreateGeneral.GeneralEasy(2); SetParams(g, 0); generals.Add(g); g = CreateGeneral.GeneralEasy(1); SetParams(g, 0); generals.Add(g); g = CreateGeneral.GeneralEasy(2); SetParams(g, 0); generals.Add(g); break; } break; case "C4B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; } break; case "C5B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; } break; case "C6B": switch (wave) { case 0: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 1: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; case 2: a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; WriteGenerals(); break; } break; } return(generals); }