Changeset 231 for trunk/UMapType.pas


Ignore:
Timestamp:
Sep 19, 2018, 2:05:52 PM (6 years ago)
Author:
chronos
Message:
  • Modified: UGame unit was split to UPlayer, UMap and UClientGUI units to have better logical separation of game classes.
  • Modified: Drawing methods moved from TMap and TPlayerMap to TClientGUI. Generic TClient class and TComputer classes don't need have any drawing support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMapType.pas

    r230 r231  
    1 unit UMap;
     1unit UMapType;
    22
    33{$mode delphi}
     
    66
    77uses
    8   Classes, SysUtils, UGame, XMLRead, XMLWrite, DOM, UGeometry, fgl;
     8  Classes, SysUtils, XMLRead, XMLWrite, DOM, UGeometry, fgl, UMap;
     9
     10const
     11  SquareCellMulX = 1.05;
     12  SquareCellMulY = 1.05;
     13  TriangleCellMulX = 0.55;
     14  TriangleCellMulY = 1.05;
    915
    1016type
     
    374380  end;
    375381
    376   // Compute polygon cat out by all other cells
     382  // Compute polygon by catting out map area by all other cells
    377383  for Cell in Cells do begin
    378384    Cell.Polygon := TPolygon.Create(TRect.Create(TPoint.Create(0, 0),
Note: See TracChangeset for help on using the changeset viewer.