Changeset 104 for trunk/Forms


Ignore:
Timestamp:
Dec 9, 2024, 3:42:36 PM (6 weeks ago)
Author:
chronos
Message:
  • Modified: Board, Tile and History separated from main Game unit.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormComputer.pas

    r88 r104  
    55uses
    66  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls,
    7   Game, Generics.Collections, Generics.Defaults, FormEx;
     7  Game, Generics.Collections, Generics.Defaults, FormEx, Board;
    88
    99type
  • trunk/Forms/FormHistory.pas

    r101 r104  
    5353
    5454procedure TFormHistory.Timer1Timer(Sender: TObject);
     55var
     56  I: Integer;
    5557begin
    5658  if RedrawPending then begin
    57     Core.Core.Game.History.GetStep(Game, TrackBar1.Position);
     59    Game.Assign(Core.Core.Game);
     60    Game.Board.Size := Core.Core.Game.Board.Size;
     61    Game.Skin := Core.Core.Game.Skin;
     62    Game.ColorPalette := Core.Core.Game.ColorPalette;
     63    Game.Replay(Core.Core.Game.History, TrackBar1.Position);
    5864    PaintBox1.Refresh;
    5965    RedrawPending := False;
  • trunk/Forms/FormMain.pas

    r103 r104  
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, Math,
    77  ActnList, ExtCtrls, StdCtrls, Game, PersistentForm, ApplicationInfo,
    8   LCLType, Syncobjs, DateUtils, FormEx;
     8  LCLType, Syncobjs, DateUtils, FormEx, Board;
    99
    1010type
Note: See TracChangeset for help on using the changeset viewer.