Changeset 208 for trunk/UGame.pas
- Timestamp:
- May 22, 2018, 10:10:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r205 r208 278 278 DiscoveredCells: Integer; 279 279 Cities: Integer; 280 WinObjectiveCells: Integer; 280 281 procedure LoadFromNode(Node: TDOMNode); 281 282 procedure SaveToNode(Node: TDOMNode); … … 320 321 TotalCities: Integer; 321 322 TotalDiscovered: Integer; 323 TotalWinObjectiveCells: Integer; 322 324 StartUnits: Integer; 323 325 StartCell: TCell; … … 541 543 DiscoveredCells := ReadInteger(Node, 'DiscoveredCells', 0); 542 544 Cities := ReadInteger(Node, 'Cities', 0); 545 WinObjectiveCells := ReadInteger(Node, 'WinObjectiveCells', 0); 543 546 end; 544 547 … … 549 552 WriteInteger(Node, 'DiscoveredCells', DiscoveredCells); 550 553 WriteInteger(Node, 'Cities', Cities); 554 WriteInteger(Node, 'WinObjectiveCells', WinObjectiveCells); 551 555 end; 552 556 … … 1556 1560 with Cell do begin 1557 1561 if Assigned(Player) then begin 1558 Player.TotalCells := Player.TotalCells + 1;1559 Player.TotalUnits := Player.TotalUnits + Power;1562 Inc(Player.TotalCells); 1563 Inc(Player.TotalUnits, Power); 1560 1564 if Terrain = ttCity then 1561 Player.TotalCities := Player.TotalCities + 1; 1565 Inc(Player.TotalCities); 1566 if Extra = etObjectiveTarget then 1567 Inc(Player.TotalWinObjectiveCells); 1562 1568 end; 1563 1569 end; … … 2505 2511 TotalCities := 0; 2506 2512 TotalDiscovered := 0; 2513 TotalWinObjectiveCells := 0; 2507 2514 TurnStats.Clear; 2508 2515 StartCell := nil; … … 3118 3125 TotalCells := 0; 3119 3126 TotalCities := 0; 3120 3127 TotalWinObjectiveCells := 0; 3121 3128 TotalDiscovered := 0; 3122 3129 for J := 0 to PlayerMap.Cells.Count - 1 do … … 3141 3148 NewStat.Units := TotalUnits; 3142 3149 NewStat.Cities := TotalCities; 3150 NewStat.WinObjectiveCells := TotalWinObjectiveCells; 3143 3151 TurnStats.Add(NewStat); 3144 3152 end;
Note:
See TracChangeset
for help on using the changeset viewer.