Changeset 275 for trunk/UGame.pas
- Timestamp:
- Feb 3, 2019, 11:28:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r274 r275 24 24 class procedure PolygonEx(Canvas: TCanvas; const Points: array of Classes.TPoint; Winding: Boolean); 25 25 class procedure PolyLineEx(Canvas: TCanvas; const Points: array of Classes.TPoint); 26 class procedure Ellipse (Canvas: TCanvas; const ARect: TRect);26 class procedure EllipseEx(Canvas: TCanvas; const ARect: TRect); 27 27 end; 28 28 … … 87 87 StoredRandSeed: Cardinal; 88 88 GeneratePlayers: Boolean; 89 GameSystemName: string; 89 90 procedure PostConfig; 90 91 procedure Assign(Source: TGame); … … 192 193 end; 193 194 194 class procedure TCanvasEx.Ellipse (Canvas: TCanvas; const ARect: TRect);195 class procedure TCanvasEx.EllipseEx(Canvas: TCanvas; const ARect: TRect); 195 196 begin 196 197 LCLIntf.Ellipse(Canvas.Handle, ARect.P1.X, ARect.P1.Y, ARect.P2.X, ARect.P2.Y); … … 526 527 SetValue(DOMString(Path + '/MaxPower'), MaxPower); 527 528 Players.SaveConfig(Config, Path + '/Players'); 528 GameSystem.SaveConfig(Config, Path + '/GameSystem');529 SetValue(DOMString(Path + '/GameSystemName'), DOMString(GameSystemName)); 529 530 end; 530 531 end; … … 565 566 MaxPower := GetValue(DOMString(Path + '/MaxPower'), 99); 566 567 Players.LoadConfig(Config, Path + '/Players'); 567 GameSystem .LoadConfig(Config, Path + '/GameSystem');568 GameSystemName := string(GetValue(DOMString(Path + '/GameSystemName'), DOMString(''))); 568 569 end; 569 570 end; … … 788 789 R: Boolean; 789 790 I: Integer; 790 PlayersCount: Integer;791 791 begin 792 792 Winner := nil;
Note:
See TracChangeset
for help on using the changeset viewer.