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

source: tags/1.2.0/xtactics.lpr

Last change on this file was 148, checked in by chronos, 6 years ago
  • Modified: Unit moves moved from TGame to TPlayer. Moves belong to player rather then to game so one player can't see and change moves of other players.
  • Added: New Unit moves window available from Tools menu.
File size: 1.0 KB
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, CoolTranslator,
11 TemplateGenerics, UFormPlayer
12 { you can add units after this },
13 SysUtils, UFormMain, UFormMove, UFormNew, UFormCharts, UFormUnitMoves;
14
15{$R *.res}
16
17{$IFDEF DEBUG}
18const
19 HeapTraceLog = 'heaptrclog.trc';
20{$ENDIF}
21
22
23begin
24 {$IFDEF DEBUG}
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.CreateForm(TFormNew, FormNew);
35 Application.CreateForm(TFormMove, FormMove);
36 Application.CreateForm(TFormPlayer, FormPlayer);
37 Application.CreateForm(TFormCharts, FormCharts);
38 Application.CreateForm(TFormUnitMoves, FormUnitMoves);
39 Application.Run;
40end.
41
Note: See TracBrowser for help on using the repository browser.