Changeset 316 for trunk/UMapType.pas
- Timestamp:
- Jun 19, 2024, 11:53:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMapType.pas
r281 r316 1 1 unit UMapType; 2 2 3 {$mode delphi}4 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, XMLRead, XMLWrite, DOM, UGeometry, fgl,UMap;6 Classes, SysUtils, XMLRead, XMLWrite, DOM, UGeometry, UMap; 9 7 10 8 type … … 83 81 84 82 TVoronoiMap = class(TMap) 85 private86 83 public 87 84 procedure Generate; override; … … 189 186 Angle: Double; 190 187 begin 191 Result := inherited CalculatePixelRect;188 Result := inherited; 192 189 Angle := 60 / 180 * Pi; 193 190 Shift := TPointF.Create(0.5, 0.5) * TPointF.Create(Cos(Angle), Sin(Angle)); … … 209 206 Doc.Free; 210 207 end; 211 inherited LoadFromFile(FileName);208 inherited; 212 209 end; 213 210 … … 225 222 Doc.Free; 226 223 end; 227 inherited SaveToFile(FileName);224 inherited; 228 225 end; 229 226 … … 346 343 function TIsometricMap.CalculatePixelRect: TRect; 347 344 begin 348 Result := inherited CalculatePixelRect;345 Result := inherited; 349 346 Result.P2 := Result.P2 - TPoint.Create( 350 347 Trunc(0.5 * DefaultCellSize.X / CellMulX), … … 383 380 Angle: Double; 384 381 begin 385 Result := inherited CalculatePixelRect;382 Result := inherited; 386 383 Angle := 30 / 180 * Pi; 387 384 Shift := TPointF.Create(0.5, 0.5) * TPointF.Create(Cos(Angle), Sin(Angle)); … … 423 420 Doc.Free; 424 421 end; 425 inherited LoadFromFile(FileName);422 inherited; 426 423 end; 427 424 … … 439 436 Doc.Free; 440 437 end; 441 inherited SaveToFile(FileName);438 inherited; 442 439 end; 443 440 … … 766 763 function TTriangleMap.CalculatePixelRect: TRect; 767 764 begin 768 Result := inherited CalculatePixelRect;765 Result := inherited; 769 766 Result.P2 := Result.P2 + TPoint.Create( 770 767 Trunc(- 0.25 * DefaultCellSize.X / CellMulX),
Note:
See TracChangeset
for help on using the changeset viewer.