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; }
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(); }
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(); } }
private void new_game() { arena = new Arena.Arena(); arena.chrononLimit = ChrononLimit; robots.Clear(); }