Changeset 6 for trunk/UGame.pas


Ignore:
Timestamp:
Feb 9, 2014, 9:53:30 PM (11 years ago)
Author:
chronos
Message:
  • Added: New game parameters form.
  • Added: Preparaton for cell mouse selection.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r5 r6  
    4646    Color: TColor;
    4747    ViewZoom: Double;
     48    SelectedCell: TPoint;
     49    procedure SelectCell(Pos: TPoint);
    4850    procedure Paint(PaintBox: TPaintBox);
    4951    constructor Create;
     
    5557    Players: TObjectList;
    5658    Map: TMap;
     59    VoidEnabled: Boolean;
    5760    constructor Create;
    5861    destructor Destroy; override;
     
    7881
    7982{ TPlayer }
     83
     84procedure TPlayer.SelectCell(Pos: TPoint);
     85begin
     86
     87end;
    8088
    8189procedure TPlayer.Paint(PaintBox: TPaintBox);
     
    128136  for X := 0 to Length(Map.Cells[0]) - 1 do
    129137  with Map.Cells[Y, X] do begin
    130     if Random(2) = 0 then Terrain := ttVoid
     138    if VoidEnabled and (Random(2) = 0) then Terrain := ttVoid
    131139      else Terrain := ttNormal;
    132140    Power := Random(4);
Note: See TracChangeset for help on using the changeset viewer.