internal masterСhief() { map = new CMap(); //map.Generate(); rand = new Random(); TimeToEnd = rand.Next(MinPlayTime, MaxPlayTime); CurrentBot = 1; Bot1 = new CGameBot(this, 100, 0, map.Bot1); Bot2 = new CGameBot(this, 100, 0, map.Bot2); BotLose = -1; GameEnd = false; WhoWin = -1; }
internal void ResetGameFromFile(string path) { map = new CMap(); map.ReadFromFile(path); TimeToEnd = rand.Next(MinPlayTime, MaxPlayTime); CurrentBot = 1; Bot1 = new CGameBot(this, 100, 0, map.Bot1); Bot2 = new CGameBot(this, 100, 0, map.Bot2); BotLose = -1; GameEnd = false; WhoWin = -1; initializ(); }
internal void ResetGame() { map = new CMap(); map.Generate(); TimeToEnd = rand.Next(MinPlayTime, MaxPlayTime); CurrentBot = 1; Bot1 = new CGameBot(this, 100, 0, map.Bot1); Bot2 = new CGameBot(this, 100, 0, map.Bot2); BotLose = -1; GameEnd = false; WhoWin = -1; initializ(); }