Changeset 17 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 5, 2019, 12:17:17 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Tiles matrix moved to separate class called TBoard.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r13 r17  
    5353  Randomize;
    5454  Game := TGame.Create;
    55   Game.Size := Point(4, 4);
     55  Game.Board.Size := Point(4, 4);
    5656  Game.OnChange := GameChange;
    5757  LoadConfig;
     
    116116
    117117    Game.TopScore := ReadIntegerWithDefault('TopScore', 0);
    118     Game.Size := Point(ReadIntegerWithDefault('SizeX', 4), ReadIntegerWithDefault('SizeY', 4));
     118    Game.Board.Size := Point(ReadIntegerWithDefault('SizeX', 4), ReadIntegerWithDefault('SizeY', 4));
    119119    Game.AnimationDuration := ReadIntegerWithDefault('AnimationDuration', 30);
    120120    if ValueExists('LanguageCode') then
     
    133133
    134134    WriteInteger('TopScore', Game.TopScore);
    135     WriteInteger('SizeX', Game.Size.X);
    136     WriteInteger('SizeY', Game.Size.Y);
     135    WriteInteger('SizeX', Game.Board.Size.X);
     136    WriteInteger('SizeY', Game.Board.Size.Y);
    137137    WriteInteger('AnimationDuration', Game.AnimationDuration);
    138138    if Assigned(Translator1.Language) and (Translator1.Language.Code <> '') then
Note: See TracChangeset for help on using the changeset viewer.