Changeset 317 for trunk/Player.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Player.pas
r316 r317 1 unit UPlayer;1 unit Player; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, Graphics, UMap, DOM, Generics.Collections, Generics.Defaults,7 XMLConf, XML, Math, UGeometry, UUnit, UNation, UItemList;6 Classes, SysUtils, Graphics, Map, DOM, Generics.Collections, Generics.Defaults, 7 XMLConf, XML, Math, Geometry, &Unit, Nation, ItemList; 8 8 9 9 type … … 205 205 206 206 uses 207 UGame, UGameSystem, UBuilding;207 Game, GameSystem, Building; 208 208 209 209 resourcestring … … 1030 1030 begin 1031 1031 for I := 0 to PlayerMap.Cells.Count - 1 do 1032 with TPlayerCell(PlayerMap.Cells[I])do begin1032 with PlayerMap.Cells[I] do begin 1033 1033 if Assigned(MapCell.OneUnit) and (MapCell.OneUnit.Power = 0) then begin 1034 1034 OneUnit := MapCell.OneUnit; … … 1044 1044 begin 1045 1045 for I := 0 to Units.Count - 1 do 1046 TUnit(Units[I]).Moves := TUnit(Units[I]).Kind.Moves;1046 Units[I].Moves := Units[I].Kind.Moves; 1047 1047 end; 1048 1048 … … 1356 1356 NewNode := Node.OwnerDocument.CreateElement('TurnStat'); 1357 1357 Node.AppendChild(NewNode); 1358 TGameTurnStat(Items[I]).SaveToNode(NewNode); 1359 end; 1360 end; 1361 1358 Items[I].SaveToNode(NewNode); 1359 end; 1360 end; 1362 1361 1363 1362 end.
Note:
See TracChangeset
for help on using the changeset viewer.