source: tags/1.3.0/xtactics.lpr

Last change on this file was 238, checked in by chronos, 6 years ago
  • Modified: Enabled back drawing only of visible cells.
  • Added: Draw only visible arrows between cells.
File size: 761 bytes
Line 
1program xtactics;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, tachartlazaruspkg, UGame, UCore, Common,
11 CoolTranslator, TemplateGenerics
12 { you can add units after this },
13 SysUtils, UFormMain, CoolStreaming;
14
15{$R *.res}
16
17{$if declared(UseHeapTrace)}
18const
19 HeapTraceLog = 'heaptrclog.trc';
20{$ENDIF}
21
22
23begin
24 {$if declared(UseHeapTrace)}
25 // Heap trace
26 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
27 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
28 {$ENDIF}
29
30 RequireDerivedFormResource := True;
31 Application.Initialize;
32 Application.CreateForm(TCore, Core);
33 Application.CreateForm(TFormMain, FormMain);
34 Application.Run;
35end.
36
Note: See TracBrowser for help on using the repository browser.