Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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();
 }