Changeset 414 for trunk/Game.pas
- Timestamp:
- Jan 10, 2025, 4:24:19 PM (7 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Game.pas
r407 r414 59 59 procedure WinObjectiveMapPrepare; 60 60 procedure BuildCity(Cell: TCell); 61 procedure DoChange; 61 62 public 62 63 GameSystem: TGameSystem; … … 510 511 end; 511 512 513 procedure TGame.DoChange; 514 begin 515 if Assigned(FOnChange) then 516 FOnChange(Self); 517 end; 518 512 519 procedure TGame.Assign(Source: TGame); 513 520 begin … … 678 685 FreeAndNil(Doc); 679 686 end; 687 DoChange; 680 688 end; 681 689 … … 851 859 CurrentPlayer.RemoveInvalidMoves; 852 860 CurrentPlayer.InitUnitMoves; 853 if Assigned(FOnChange) then 854 FOnChange(Self); 861 DoChange; 855 862 end; 856 863 … … 1009 1016 1010 1017 ComputePlayerStats; 1018 DoChange; 1011 1019 end; 1012 1020 … … 1015 1023 Running := False; 1016 1024 if Assigned(OnWin) then OnWin(Winner); 1025 DoChange; 1017 1026 end; 1018 1027
Note:
See TracChangeset
for help on using the changeset viewer.