Changeset 106 for trunk/Tile.pas


Ignore:
Timestamp:
Dec 9, 2024, 8:54:41 PM (5 weeks ago)
Author:
chronos
Message:
  • Added: Optionally generated unmergeable movable tiles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tile.pas

    r105 r106  
    1212
    1313  TTile = class
     14  public
    1415    Index: TPoint;
    1516    Value: Integer;
    1617    NewValue: Integer;
     18    NewUnmergeable: Boolean;
    1719    Merged: Boolean;
    1820    Action: TTileAction;
    1921    Shift: TPoint;
    2022    Disabled: Boolean;
     23    Unmergeable: Boolean;
    2124    procedure Clear;
    2225    procedure Assign(Source: TTile);
     
    3639begin
    3740  Value := 0;
    38   Action := taNone;;
     41  Action := taNone;
    3942  Disabled := False;
     43  Unmergeable := False;
    4044end;
    4145
     
    4650  Merged := Source.Merged;
    4751  Disabled := Source.Disabled;
     52  Unmergeable := Source.Unmergeable;
    4853end;
    4954
     
    5560    WriteInteger('Value', Value);
    5661    WriteBool('Disabled', Disabled);
     62    WriteBool('Unmergeable', Unmergeable);
    5763  end;
    5864end;
     
    6672    Value := ReadIntegerWithDefault('Value', Value);
    6773    Disabled := ReadBoolWithDefault('Disabled', Disabled);
     74    Unmergeable := ReadBoolWithDefault('Unmergeable', Unmergeable);
    6875  end;
    6976end;
Note: See TracChangeset for help on using the changeset viewer.