Ignore:
Timestamp:
Jan 7, 2017, 11:32:14 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Formated all project source files using Delphi formatter as original indentation and other formatting was really bad.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/LocalPlayer.pas

    r2 r6  
    11{$INCLUDE switches}
    2 
    32unit LocalPlayer;
    43
    54interface
    65
    7 procedure Client(Command,Player:integer;var Data); stdcall;
     6procedure Client(Command, Player: integer; var Data); stdcall;
    87
    98procedure SetAIName(p: integer; Name: string);
    10 
    119
    1210implementation
    1311
    1412uses
    15 Term,CityScreen,Draft,MessgEx,Select,CityType,Help,UnitStat,Diagram,
    16 NatStat,Wonders,Nego,Enhance,BaseWin,Battle,Rates,TechTree,
     13  Term, CityScreen, Draft, MessgEx, Select, CityType, Help, UnitStat, Diagram,
     14  NatStat, Wonders, Nego, Enhance, BaseWin, Battle, Rates, TechTree,
    1715
    18 Forms;
     16  Forms;
    1917
    2018var
    21 FormsCreated: boolean;
     19  FormsCreated: boolean;
    2220
    2321procedure Client;
    2422begin
    25 if not FormsCreated then
     23  if not FormsCreated then
    2624  begin
    27   FormsCreated:=true;
    28   BaseWin.CreateOffscreen;
    29   Application.CreateForm(TMainScreen, MainScreen);
    30   Application.CreateForm(TCityDlg, CityDlg);
    31   Application.CreateForm(TModalSelectDlg, ModalSelectDlg);
    32   Application.CreateForm(TListDlg, ListDlg);
    33   Application.CreateForm(TMessgExDlg, MessgExDlg);
    34   Application.CreateForm(TDraftDlg, DraftDlg);
    35   Application.CreateForm(TCityTypeDlg, CityTypeDlg);
    36   Application.CreateForm(THelpDlg, HelpDlg);
    37   Application.CreateForm(TUnitStatDlg, UnitStatDlg);
    38   Application.CreateForm(TDiaDlg, DiaDlg);
    39   Application.CreateForm(TNatStatDlg, NatStatDlg);
    40   Application.CreateForm(TWondersDlg, WondersDlg);
    41   Application.CreateForm(TNegoDlg, NegoDlg);
    42   Application.CreateForm(TEnhanceDlg, EnhanceDlg);
    43   Application.CreateForm(TBattleDlg, BattleDlg);
    44   //Application.CreateForm(TAdvisorDlg, AdvisorDlg);
    45   Application.CreateForm(TRatesDlg, RatesDlg);
    46   Application.CreateForm(TTechTreeDlg, TechTreeDlg);
     25    FormsCreated := true;
     26    BaseWin.CreateOffscreen;
     27    Application.CreateForm(TMainScreen, MainScreen);
     28    Application.CreateForm(TCityDlg, CityDlg);
     29    Application.CreateForm(TModalSelectDlg, ModalSelectDlg);
     30    Application.CreateForm(TListDlg, ListDlg);
     31    Application.CreateForm(TMessgExDlg, MessgExDlg);
     32    Application.CreateForm(TDraftDlg, DraftDlg);
     33    Application.CreateForm(TCityTypeDlg, CityTypeDlg);
     34    Application.CreateForm(THelpDlg, HelpDlg);
     35    Application.CreateForm(TUnitStatDlg, UnitStatDlg);
     36    Application.CreateForm(TDiaDlg, DiaDlg);
     37    Application.CreateForm(TNatStatDlg, NatStatDlg);
     38    Application.CreateForm(TWondersDlg, WondersDlg);
     39    Application.CreateForm(TNegoDlg, NegoDlg);
     40    Application.CreateForm(TEnhanceDlg, EnhanceDlg);
     41    Application.CreateForm(TBattleDlg, BattleDlg);
     42    // Application.CreateForm(TAdvisorDlg, AdvisorDlg);
     43    Application.CreateForm(TRatesDlg, RatesDlg);
     44    Application.CreateForm(TTechTreeDlg, TechTreeDlg);
    4745  end;
    48 MainScreen.Client(Command,Player,Data);
     46  MainScreen.Client(Command, Player, Data);
    4947end;
    5048
    5149procedure SetAIName(p: integer; Name: string);
    5250begin
    53 MainScreen.SetAIName(p, Name);
     51  MainScreen.SetAIName(p, Name);
    5452end;
    5553
    5654initialization
    57 FormsCreated:=false;
     55
     56FormsCreated := false;
    5857
    5958end.
    60 
Note: See TracChangeset for help on using the changeset viewer.