Changeset 6 for trunk/LocalPlayer/LocalPlayer.pas
- Timestamp:
- Jan 7, 2017, 11:32:14 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/LocalPlayer.pas
r2 r6 1 1 {$INCLUDE switches} 2 3 2 unit LocalPlayer; 4 3 5 4 interface 6 5 7 procedure Client(Command, Player:integer;var Data); stdcall;6 procedure Client(Command, Player: integer; var Data); stdcall; 8 7 9 8 procedure SetAIName(p: integer; Name: string); 10 11 9 12 10 implementation 13 11 14 12 uses 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, 17 15 18 Forms;16 Forms; 19 17 20 18 var 21 FormsCreated: boolean;19 FormsCreated: boolean; 22 20 23 21 procedure Client; 24 22 begin 25 if not FormsCreated then23 if not FormsCreated then 26 24 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); 47 45 end; 48 MainScreen.Client(Command,Player,Data);46 MainScreen.Client(Command, Player, Data); 49 47 end; 50 48 51 49 procedure SetAIName(p: integer; Name: string); 52 50 begin 53 MainScreen.SetAIName(p, Name);51 MainScreen.SetAIName(p, Name); 54 52 end; 55 53 56 54 initialization 57 FormsCreated:=false; 55 56 FormsCreated := false; 58 57 59 58 end. 60
Note:
See TracChangeset
for help on using the changeset viewer.