Пример #1
0
        private void reset_game()
        {
            stop_game();

            arena   = new Arena.Arena();
            arenaIt = null;

            arenaview.arena = arena;
            arenaview.QueueDraw();

            chrononlabel.Text = "Chronon 0 (20 c/s)";
            seedlabel.Markup  = "<small>Match seed: " + arena.seed + "</small>";

            for (int i = 0; i < 6; i++)
            {
                if (files[i] == null)
                {
                    continue;
                }

                Robot robot = arena.loadRobot(files[i]);
                robotlist[robot.number].robot = robot;
                robotlist[robot.number].update_info();
            }

            openaction.Sensitive = true;
        }
Пример #2
0
 public BattleDetails()
 {
     Participants = new List<Participant>();
     //TurnDetails = new List<TurnDetail>();
     TurnDetails = new List<string>();
     BattleStatus = BattleStatus.NotStarted;
     Arena = new Arena.Arena();
     Arena.BuildArenaFloor(5);
     BattleGuid = Guid.NewGuid();
 }
Пример #3
0
 private void new_game()
 {
     arena = new Arena.Arena();
     arenaview.arena = arena;
     chrononlabel.Text = "Chronon 0";
     foreach (RobotControl c in robotlist)
     {
         c.robot = null;
         c.update_info();
     }
 }
Пример #4
0
 private void new_game()
 {
     arena             = new Arena.Arena();
     arenaview.arena   = arena;
     chrononlabel.Text = "Chronon 0";
     foreach (RobotControl c in robotlist)
     {
         c.robot = null;
         c.update_info();
     }
 }
Пример #5
0
 private void new_game()
 {
     arena = new Arena.Arena();
     arena.chrononLimit = ChrononLimit;
     robots.Clear();
 }
Пример #6
0
 private void new_game()
 {
     arena = new Arena.Arena();
     arena.chrononLimit = ChrononLimit;
     robots.Clear();
 }