public InternalBuildingParser(Building building) : base(building)
 {
     _pattern = @">{0}</a> \(Poziom\s+(?<level>[0-9]+)\)";
     _parser  = new ObjectParser
     {
         Object   = _building,
         Pattern  = _pattern,
         Patterns = BuildingParser.Patterns
     };
 }
Exemple #2
0
 public MoveResourceParser(Resource resource) : base(resource)
 {
     _pattern = @"(?<level>[0-9]+) {0}<br>";
     _parser  = new ObjectParser
     {
         Object   = _resource,
         Pattern  = _pattern,
         Patterns = ResourceParser.Patterns
     };
 }
Exemple #3
0
 public ReportBuildingParser(Building building) : base(building)
 {
     _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>";
     _parser  = new ObjectParser
     {
         Object   = _building,
         Pattern  = _pattern,
         Patterns = BuildingParser.Patterns
     };
 }
Exemple #4
0
 public InternalDefenceParser(Defence defence) : base(defence)
 {
     _pattern = @">{0}</a> \(dost.pne:\s+<b>(?<level>[0-9]+)</b>";
     _parser  = new ObjectParser
     {
         Object   = _defence,
         Pattern  = _pattern,
         Patterns = DefenceParser.Patterns
     };
 }
Exemple #5
0
 public ReportFleetParser(Fleet fleet) : base(fleet)
 {
     _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>";
     _parser  = new ObjectParser
     {
         Object   = _fleet,
         Pattern  = _pattern,
         Patterns = FleetParser.Patterns
     };
 }
 public ReportDefenceParser(Defence defence) : base(defence)
 {
     _pattern = @"<td class=nachricht width=120>{0}</td>\s*<td width=20 class=nachricht>(?<level>[^<]+)</td>";
     _parser  = new ObjectParser
     {
         Object   = _defence,
         Pattern  = _pattern,
         Patterns = DefenceParser.Patterns
     };
 }
Exemple #7
0
 public InternalWeaponParser(Fleet fleet) : base(fleet)
 {
     //>MoŸdzierz</a> (dostêpne: <b>2</b>, mo¿liwe: <b>0</b>)
     _pattern = @">{0}</a> \(dost.pne:\s+<b>(?<level>[0-9]+)</b>";
     _parser  = new ObjectParser
     {
         Object   = _fleet,
         Pattern  = _pattern,
         Patterns = FleetParser.Patterns
     };
 }
 public InternalResearchParser(Research research) : base(research)
 {
     //>Technologia kopalni</a> (Poziom 19)
     _pattern = @">{0}</a> \(Poziom\s+(?<level>[0-9]+)\)";
     _parser  = new ObjectParser
     {
         Object   = _research,
         Pattern  = _pattern,
         Patterns = ResearchParser.Patterns
     };
 }
Exemple #9
0
 public ReportResearchParser(Research research) : base(research)
 {
     _pattern = @"<td class=nachricht width=120>{0}</td>\s*" +
                @"<td width=20 class=nachricht>(?<level>[^<]+)</td>";
     _parser = new ObjectParser
     {
         Object   = _research,
         Pattern  = _pattern,
         Patterns = ResearchParser.Patterns
     };
 }
Exemple #10
0
 public OrderFleetParser(Fleet fleet) : base(fleet)
 {
     //'1 Transmiter<br>1 Sonda szpiegowska<br>1 Recycler<br>'
     _pattern = @"(?<level>[0-9]+) {0}<br>";
     _parser  = new ObjectParser
     {
         Object   = _fleet,
         Pattern  = _pattern,
         Patterns = FleetParser.Patterns
     };
 }
Exemple #11
0
 public InternalOrderParser(Fleet fleet) : base(fleet)
 {
     _pattern = @"setMax\('ship_{0}', (?<level>[0-9]+)\)";
     string[] _patterns = new string[15];
     for (int i = 0; i < 15; i++)
     {
         _patterns[i] = (i + 1).ToString();
     }
     _parser = new ObjectParser
     {
         Object   = _fleet,
         Pattern  = _pattern,
         Patterns = _patterns
     };
 }