Exemplo n.º 1
0
        public LogParser(frmMain frm)
        {
            this.frmMain = frm;
            this.GameState = new GameState();

            this.power_log_parser = new Parsers.PowerLogParser(this.frmMain, this.GameState);
            this.entity_choices_parser = new Parsers.EntityChoicesParser(this.frmMain, this.GameState);
            this.send_choices_parser = new Parsers.SendChoicesParser(this.frmMain, this.GameState);

            this.power_log_parser.ActionStart += (sender, e) =>
            {
                if (this.ActionStart != null) this.ActionStart(this, new ActionStartEventArgs(e, this.GameState));
            };
            this.power_log_parser.CreateGameEvent += (sender, e) =>
            {
                if (this.CreateGameEvent != null) this.CreateGameEvent(this, e);
            };
            this.GameState.EndTurnEvent += (sender, e) =>
            {
                if (this.EndTurnEvent != null) this.EndTurnEvent(this, new EndTurnEventArgs(e, this.GameState));
            };
        }
Exemplo n.º 2
0
 public LogReader(frmMain frm)
 {
     this.change_id = 1;
     this.frmMain = frm;
     this.Reset();
 }