|
Last change
on this file was 1, checked in by chronos, 5 years ago |
- Added: "Clovece nezlob se" game with adjustable board for different player count.
|
|
File size:
802 bytes
|
| Line | |
|---|
| 1 | unit UGame;
|
|---|
| 2 |
|
|---|
| 3 | {$mode delphi}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, Controls, UGraphics;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 11 |
|
|---|
| 12 | { TGame }
|
|---|
| 13 |
|
|---|
| 14 | TGame = class
|
|---|
| 15 | Name: string;
|
|---|
| 16 | RedrawPending: Boolean;
|
|---|
| 17 | procedure Repaint;
|
|---|
| 18 | procedure Reset; virtual;
|
|---|
| 19 | constructor Create; virtual;
|
|---|
| 20 | procedure Paint(Canvas: TCanvas); virtual;
|
|---|
| 21 | procedure MouseUp(Button: TMouseButton; Position: TPoint); virtual;
|
|---|
| 22 | procedure KeyUp(Key: Word); virtual;
|
|---|
| 23 | end;
|
|---|
| 24 |
|
|---|
| 25 | TGameMenu = class(TGame)
|
|---|
| 26 |
|
|---|
| 27 | end;
|
|---|
| 28 |
|
|---|
| 29 | implementation
|
|---|
| 30 |
|
|---|
| 31 | { TGame }
|
|---|
| 32 |
|
|---|
| 33 | procedure TGame.Repaint;
|
|---|
| 34 | begin
|
|---|
| 35 | RedrawPending := True;
|
|---|
| 36 | end;
|
|---|
| 37 |
|
|---|
| 38 | procedure TGame.Reset;
|
|---|
| 39 | begin
|
|---|
| 40 | end;
|
|---|
| 41 |
|
|---|
| 42 | constructor TGame.Create;
|
|---|
| 43 | begin
|
|---|
| 44 | end;
|
|---|
| 45 |
|
|---|
| 46 | procedure TGame.Paint(Canvas: TCanvas);
|
|---|
| 47 | begin
|
|---|
| 48 | end;
|
|---|
| 49 |
|
|---|
| 50 | procedure TGame.MouseUp(Button: TMouseButton; Position: TPoint);
|
|---|
| 51 | begin
|
|---|
| 52 | end;
|
|---|
| 53 |
|
|---|
| 54 | procedure TGame.KeyUp(Key: Word);
|
|---|
| 55 | begin
|
|---|
| 56 | end;
|
|---|
| 57 |
|
|---|
| 58 | end.
|
|---|
| 59 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.