-
Notifications
You must be signed in to change notification settings - Fork 2
/
GameWindowInterface.pas
55 lines (39 loc) · 1.29 KB
/
GameWindowInterface.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{$include lem_directives.inc}
unit GameWindowInterface;
interface
uses
GR32_Image,
SharedGlobals;
type
TGameSpeed = (
gspNormal,
gspPause,
gspRewind,
gspFF,
gspTurbo,
gspSlowMo
);
IGameWindow = Interface(IInterface)
function ScreenImage: TImage32;
function GetDisplayWidth: Integer;
function GetDisplayHeight: Integer;
property DisplayWidth: Integer read GetDisplayWidth;
property DisplayHeight: Integer read GetDisplayHeight;
procedure SetForceUpdateOneFrame(aValue: Boolean);
procedure SetHyperSpeedTarget(aValue: Integer);
procedure SaveReplay;
procedure GotoSaveState(aTargetIteration: Integer; PauseAfterSkip: Integer = 0; aForceBeforeIteration: Integer = -1);
procedure ApplyMouseTrap;
procedure SetCurrentCursor(aCursor: Integer = 0);
function DoSuspendCursor: Boolean;
function GetIsHyperSpeed: Boolean;
property IsHyperSpeed: Boolean read GetIsHyperSpeed;
procedure SetGameSpeed(aValue: TGameSpeed);
function GetGameSpeed: TGameSpeed;
property GameSpeed: TGameSpeed read GetGameSpeed write SetGameSpeed;
procedure SetClearPhysics(aValue: Boolean);
function GetClearPhysics: Boolean;
property ClearPhysics: Boolean read GetClearPhysics write SetClearPhysics;
end;
implementation
end.