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); }
public void FirstGame() { resource[GOLD] = 50; resource[WOOD] = 0; resource[ROCK] = 0; resource[IRON] = 0; resource[BONES] = 100; resource[SOULS] = 0; resource[BODY] = 50; resource[REAL] = 50; resource[ARTIFACT_V0] = 1; //Неизвестный Артефакт resource[ARTIFACT_V1] = 2; //Неизвестный Артефакт 1 грейда resource[ARTIFACT_V2] = 3; //Неизвестный Артефакт 2 грейда //Эквип resource[EQUIPMENT_V0] = 11; //Неизвестная Экипировка resource[EQUIPMENT_V1] = 12; //Неизвестная Экипировка 1 грейда resource[EQUIPMENT_V2] = 13; //Неизвестная Экипировка 2 грейда //Юниты resource[UNIT_V0] = 11; //Неизвестный Юнит resource[UNIT_V1] = 12; //Неизвестный Юнит 1 грейда resource[UNIT_V2] = 13; //Неизвестный Юнит 2 грейда //Сборные предметы //Артефакты resource[ARTIFACT_V0_PARTS] = 14; //Неизвестный Артефакт состоящий из N частей resource[ARTIFACT_V1_PARTS] = 15; //Неизвестный Артефакт 1 грейда состоящий из N частей resource[ARTIFACT_V2_PARTS] = 16; //Неизвестный Артефакт 2 грейда состоящий из N частей //Эквип resource[EQUIPMENT_V0_PARTS] = 17; //Неизвестная Экипировка состоящий из N частей resource[EQUIPMENT_V1_PARTS] = 18; //Неизвестная Экипировка 1 грейда состоящий из N частей resource[EQUIPMENT_V2_PARTS] = 19; //Неизвестная Экипировка 2 грейда состоящий из N частей //Юниты resource[UNIT_V0_PARTS] = 20; //Неизвестный Юнит состоящий из N частей resource[UNIT_V1_PARTS] = 21; //Неизвестный Юнит 1 грейда состоящий из N частей resource[UNIT_V2_PARTS] = 22; //Неизвестный Юнит 2 грейда состоящий из N частей units.Add(CreateUnit.UnitCreate(UnitType.SkeletonV0)); units[0].PARAMS[UNIT_COUNT] = 50; units.Add(CreateUnit.UnitCreate(UnitType.ZombieV0)); units[1].PARAMS[UNIT_COUNT] = 30; units.Add(CreateUnit.UnitCreate(UnitType.SkeletonV1)); units[2].PARAMS[UNIT_COUNT] = 5; units.Add(CreateUnit.UnitCreate(UnitType.ZombieV1)); units[3].PARAMS[UNIT_COUNT] = 3; units.Add(CreateUnit.UnitCreate(UnitType.SkeletonV2)); units[4].PARAMS[UNIT_COUNT] = 0; units.Add(CreateUnit.UnitCreate(UnitType.ZombieV2)); units[5].PARAMS[UNIT_COUNT] = 1; units.Add(CreateUnit.UnitCreate(UnitType.Engineer)); units[5].PARAMS[UNIT_COUNT] = 0; itemsArena.Add(CreateItem.Head_0()); itemsArena.Add(CreateItem.Head_1()); itemsArena.Add(CreateItem.Tors_0()); itemsArena.Add(CreateItem.Pants_0()); itemsArena.Add(CreateItem.Bots_0()); itemsArena.Add(CreateItem.Weapon0_0()); itemsArena.Add(CreateItem.Weapon1_0()); itemsArena.Add(CreateItem.Amulet_0()); itemsArena.Add(CreateItem.Ring_0()); itemsArena.Add(CreateItem.Art_0()); itemsCompany.Add(CreateItem.Head_0()); itemsCompany.Add(CreateItem.Head_1()); itemsCompany.Add(CreateItem.Tors_0()); itemsCompany.Add(CreateItem.Pants_0()); itemsCompany.Add(CreateItem.Bots_0()); itemsCompany.Add(CreateItem.Weapon0_0()); itemsCompany.Add(CreateItem.Weapon1_0()); itemsCompany.Add(CreateItem.Amulet_0()); itemsCompany.Add(CreateItem.Ring_0()); itemsCompany.Add(CreateItem.Art_0()); Hero.PARAMS[ARENA_HERO_DAMAGE] = 100; Hero.PARAMS[ARENA_HERO_HP] = 100; Hero.PARAMS[ARENA_HERO_HP_CURRENT] = Hero.PARAMS[ARENA_HERO_HP]; Hero.PARAMS[HERO_MANA_MAX] = 100; Hero.PARAMS[HERO_MANA_CURRENT] = Hero.PARAMS[HERO_MANA_MAX]; Hero.PARAMS[HERO_MANA_REGEN] = 0.2f; generals.Add(CreateGeneral.GenarateGeneral()); generals.Add(CreateGeneral.GenarateGeneral()); generals.Add(CreateGeneral.GenarateGeneral()); generals.Add(CreateGeneral.GenarateGeneral()); generals.Add(CreateGeneral.GenarateGeneral()); generals.Add(CreateGeneral.GenarateGeneral()); generals[0].PARAMS[GENERAL_CRIT_CHANGE_CURRENT] = 80; CleanMap(); AvailableList.StartDictionary(); }