Changeset 282 for trunk/UCore.pas


Ignore:
Timestamp:
Mar 10, 2019, 4:48:41 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Allow to set nation in player settings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r281 r282  
    99  UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator,
    1010  URegistry, ULastOpenedList, UTheme, Registry, Menus, UFormClient, UPlayer,
    11   UGameServer, UGameClient, fgl, UServerList, UGameSystem, UUnit;
     11  UGameServer, UGameClient, fgl, UServerList, UGameSystem, UUnit, Graphics;
    1212
    1313type
     
    118118  Core: TCore;
    119119
     120const
     121  clOrange = $009Aff;
     122  clBrown = $a52A2A;
     123
    120124
    121125implementation
     
    517521    PreferedMapType := mtNone;
    518522    MaxPlayerCount := 3;
     523    with Nations.AddNew('Nation 1') do begin
     524      Color := clBlue;
     525    end;
     526    with Nations.AddNew('Nation 2') do begin
     527      Color := clRed;
     528    end;
     529    with Nations.AddNew('Nation 3') do begin
     530      Color := clGreen;
     531    end;
     532    with Nations.AddNew('Nation 4') do begin
     533      Color := clOrange;
     534    end;
     535    with Nations.AddNew('Nation 5') do begin
     536      Color := clPurple;
     537    end;
     538    with Nations.AddNew('Nation 6') do begin
     539      Color := clMaroon;
     540    end;
     541    with Nations.AddNew('Nation 7') do begin
     542      Color := clAqua;
     543    end;
     544    with Nations.AddNew('Nation 8') do begin
     545      Color := clFuchsia;
     546    end;
    519547    with UnitKinds.AddNew('Unit') do begin
    520548      Moves := 1;
     
    525553  with GameSystems.AddNew('HexWars') do begin
    526554    PreferedMapType := mtHexagonVertical;
    527     MaxPlayerCount := 3;
     555    UnitsMoveImmediately := False;
     556    MaxPlayerCount := 8;
     557    with Nations.AddNew('Nation 1') do begin
     558      Color := clBlue;
     559    end;
     560    with Nations.AddNew('Nation 2') do begin
     561      Color := clRed;
     562    end;
     563    with Nations.AddNew('Nation 3') do begin
     564      Color := clGreen;
     565    end;
     566    with Nations.AddNew('Nation 4') do begin
     567      Color := clOrange;
     568    end;
     569    with Nations.AddNew('Nation 5') do begin
     570      Color := clPurple;
     571    end;
     572    with Nations.AddNew('Nation 6') do begin
     573      Color := clMaroon;
     574    end;
     575    with Nations.AddNew('Nation 7') do begin
     576      Color := clAqua;
     577    end;
     578    with Nations.AddNew('Nation 8') do begin
     579      Color := clFuchsia;
     580    end;
    528581    with UnitKinds.AddNew('Unit') do begin
    529582      Moves := 1;
     
    534587  with GameSystems.AddNew('Civilization I') do begin
    535588    PreferedMapType := mtSquare;
     589    UnitsMoveImmediately := True;
     590    MaxPlayerCount := 3;
     591    with Nations.AddNew('Americans') do begin
     592      Color := clFuchsia;
     593    end;
     594    with UnitKinds.AddNew('Scout') do begin
     595      Moves := 1;
     596      Power := 1;
     597    end;
     598    with UnitKinds.AddNew('Settler') do begin
     599      Moves := 1;
     600      Power := 1;
     601    end;
     602  end;
     603
     604  with GameSystems.AddNew('Civilization II') do begin
     605    PreferedMapType := mtIsometric;
     606    UnitsMoveImmediately := True;
    536607    MaxPlayerCount := 3;
    537608    with UnitKinds.AddNew('Scout') do begin
     
    545616  end;
    546617
    547   with GameSystems.AddNew('Civilization II') do begin
     618  with GameSystems.AddNew('Civilization III') do begin
    548619    PreferedMapType := mtIsometric;
     620    UnitsMoveImmediately := True;
    549621    MaxPlayerCount := 3;
    550622    with UnitKinds.AddNew('Scout') do begin
     
    558630  end;
    559631
    560   with GameSystems.AddNew('Civilization III') do begin
     632  with GameSystems.AddNew('Civilization IV') do begin
    561633    PreferedMapType := mtIsometric;
     634    UnitsMoveImmediately := True;
    562635    MaxPlayerCount := 3;
    563636    with UnitKinds.AddNew('Scout') do begin
     
    571644  end;
    572645
    573   with GameSystems.AddNew('Civilization IV') do begin
    574     PreferedMapType := mtIsometric;
     646  with GameSystems.AddNew('Civilization V') do begin
     647    PreferedMapType := mtHexagonHorizontal;
     648    UnitsMoveImmediately := True;
    575649    MaxPlayerCount := 3;
    576650    with UnitKinds.AddNew('Scout') do begin
     
    584658  end;
    585659
    586   with GameSystems.AddNew('Civilization V') do begin
     660  with GameSystems.AddNew('Civilization VI') do begin
    587661    PreferedMapType := mtHexagonHorizontal;
     662    UnitsMoveImmediately := True;
    588663    MaxPlayerCount := 3;
    589664    with UnitKinds.AddNew('Scout') do begin
     
    597672  end;
    598673
    599   with GameSystems.AddNew('Civilization VI') do begin
    600     PreferedMapType := mtHexagonHorizontal;
    601     MaxPlayerCount := 3;
    602     with UnitKinds.AddNew('Scout') do begin
    603       Moves := 1;
    604       Power := 1;
    605     end;
    606     with UnitKinds.AddNew('Settler') do begin
    607       Moves := 1;
    608       Power := 1;
    609     end;
    610   end;
    611 
    612674  with GameSystems.AddNew('Dune 2') do begin
    613675    PreferedMapType := mtSquare;
     676    UnitsMoveImmediately := True;
    614677    MaxPlayerCount := 3;
     678    with Nations.AddNew('Attreides') do begin
     679      Color := clBlue;
     680    end;
     681    with Nations.AddNew('Harkonen') do begin
     682      Color := clRed;
     683    end;
     684    with Nations.AddNew('Ordos') do begin
     685      Color := clGreen;
     686    end;
     687    with Nations.AddNew('Fremens') do begin
     688      Color := clBrown;
     689    end;
     690    with Nations.AddNew('Sardaukers') do begin
     691      Color := clPurple;
     692    end;
     693    with Nations.AddNew('Merceneries') do begin
     694      Color := clOrange;
     695    end;
    615696    with UnitKinds.AddNew('Light Infantry') do begin
    616697      Moves := 1;
     
    629710  with GameSystems.AddNew('Battle Isle 2') do begin
    630711    PreferedMapType := mtHexagonHorizontal;
     712    UnitsMoveImmediately := True;
    631713    MaxPlayerCount := 8;
    632714    with UnitKinds.AddNew('Demon 132') do begin
     
    650732  with GameSystems.AddNew('Panzer General') do begin
    651733    PreferedMapType := mtHexagonHorizontal;
     734    UnitsMoveImmediately := True;
    652735    MaxPlayerCount := 2;
     736    with Nations.AddNew('Germany') do begin
     737      Color := clBlue;
     738    end;
     739    with Nations.AddNew('Russia') do begin
     740      Color := clRed;
     741    end;
     742    with Nations.AddNew('Alliance') do begin
     743      Color := clGreen;
     744    end;
    653745    with UnitKinds.AddNew('Rifle Team') do begin
    654746      Moves := 1;
Note: See TracChangeset for help on using the changeset viewer.