source: tags/1.4.0/URiver.pas

Last change on this file was 91, checked in by chronos, 20 months ago
  • Modified: More classes separated from UEngine unit.
File size: 437 bytes
Line 
1unit URiver;
2
3interface
4
5uses
6 Classes, SysUtils, Graphics, Generics.Collections;
7
8type
9 { TRiver }
10
11 TRiver = class
12 Points: array of TPoint;
13 procedure Paint(Canvas: TCanvas);
14 end;
15
16 { TRivers }
17
18 TRivers = class(TObjectList<TRiver>)
19 end;
20
21
22implementation
23
24{ TRiver }
25
26procedure TRiver.Paint(Canvas: TCanvas);
27begin
28 Canvas.Brush.Color := $ffffe0;
29 Canvas.Brush.Style := bsSolid;
30 Canvas.Polygon(Points);
31end;
32
33end.
34
Note: See TracBrowser for help on using the repository browser.