close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

source: trunk/xtactics.lpr

Last change on this file was 183, checked in by chronos, 6 years ago
  • Modified: Units move handling was moved from Core to FormClient as it is game client related functionality.
File size: 845 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, UFormPlayer
12 { you can add units after this },
13 SysUtils, UFormMain, UFormMove, UFormNew, UFormCharts, UFormUnitMoves,
14 UFormChat, UGameSocket, UTCP, UServerList, UFormPlayersStats;
15
16{$R *.res}
17
18{$IFDEF DEBUG}
19const
20 HeapTraceLog = 'heaptrclog.trc';
21{$ENDIF}
22
23
24begin
25 {$IFDEF DEBUG}
26 // Heap trace
27 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
28 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
29 {$ENDIF}
30
31 RequireDerivedFormResource := True;
32 Application.Initialize;
33 Application.CreateForm(TCore, Core);
34 Application.CreateForm(TFormMain, FormMain);
35 Application.Run;
36end.
37
Note: See TracBrowser for help on using the repository browser.