Changeset 336 for trunk/Game.pas


Ignore:
Timestamp:
Sep 7, 2024, 10:29:16 PM (2 months ago)
Author:
chronos
Message:
  • Added: Automated tests accessible in debug mode.
  • Fixed: Player units internal links.
  • Fixed: List items id regeneration before game save.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Game.pas

    r317 r336  
    9999    procedure New;
    100100    procedure EndGame(Winner: TPlayer = nil);
     101    function Compare(Game: TGame): Boolean;
    101102    property Running: Boolean read FRunning write SetRunning;
    102103    property MapType: TMapType read FMapType write SetMapType;
     
    887888  for I := 0 to Players.Count - 1 do TPlayer(Players[I]).Clear;
    888889  Map.Clear;
     890  Units.Clear;
    889891end;
    890892
     
    924926end;
    925927
     928function TGame.Compare(Game: TGame): Boolean;
     929begin
     930  Result := BridgeEnabled = Game.BridgeEnabled;
     931end;
     932
    926933end.
Note: See TracChangeset for help on using the changeset viewer.