Changeset 281 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 21, 2019, 10:45:41 PM (6 years ago)
Author:
chronos
Message:
  • Added: New map type hexagonal horizontal.
  • Added: Limit allowed map type according selected game system.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r277 r281  
    125125uses
    126126  UFormMain, UFormNew, UFormSettings, UFormAbout, UClientAI, UFormKeyShortcuts,
    127   UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI;
     127  UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI, UMapType;
    128128
    129129const
     
    514514procedure TCore.InitGameSystems;
    515515begin
    516   with GameSystems.AddNew('HexWars') do begin
     516  with GameSystems.AddNew('Custom') do begin
     517    PreferedMapType := mtNone;
    517518    MaxPlayerCount := 3;
    518519    with UnitKinds.AddNew('Unit') do begin
     
    522523  end;
    523524
    524   with GameSystems.AddNew('Civilization') do begin
     525  with GameSystems.AddNew('HexWars') do begin
     526    PreferedMapType := mtHexagonVertical;
     527    MaxPlayerCount := 3;
     528    with UnitKinds.AddNew('Unit') do begin
     529      Moves := 1;
     530      Power := 99;
     531    end;
     532  end;
     533
     534  with GameSystems.AddNew('Civilization I') do begin
     535    PreferedMapType := mtSquare;
    525536    MaxPlayerCount := 3;
    526537    with UnitKinds.AddNew('Scout') do begin
     
    534545  end;
    535546
     547  with GameSystems.AddNew('Civilization II') do begin
     548    PreferedMapType := mtIsometric;
     549    MaxPlayerCount := 3;
     550    with UnitKinds.AddNew('Scout') do begin
     551      Moves := 1;
     552      Power := 1;
     553    end;
     554    with UnitKinds.AddNew('Settler') do begin
     555      Moves := 1;
     556      Power := 1;
     557    end;
     558  end;
     559
     560  with GameSystems.AddNew('Civilization III') do begin
     561    PreferedMapType := mtIsometric;
     562    MaxPlayerCount := 3;
     563    with UnitKinds.AddNew('Scout') do begin
     564      Moves := 1;
     565      Power := 1;
     566    end;
     567    with UnitKinds.AddNew('Settler') do begin
     568      Moves := 1;
     569      Power := 1;
     570    end;
     571  end;
     572
     573  with GameSystems.AddNew('Civilization IV') do begin
     574    PreferedMapType := mtIsometric;
     575    MaxPlayerCount := 3;
     576    with UnitKinds.AddNew('Scout') do begin
     577      Moves := 1;
     578      Power := 1;
     579    end;
     580    with UnitKinds.AddNew('Settler') do begin
     581      Moves := 1;
     582      Power := 1;
     583    end;
     584  end;
     585
     586  with GameSystems.AddNew('Civilization V') do begin
     587    PreferedMapType := mtHexagonHorizontal;
     588    MaxPlayerCount := 3;
     589    with UnitKinds.AddNew('Scout') do begin
     590      Moves := 1;
     591      Power := 1;
     592    end;
     593    with UnitKinds.AddNew('Settler') do begin
     594      Moves := 1;
     595      Power := 1;
     596    end;
     597  end;
     598
     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
    536612  with GameSystems.AddNew('Dune 2') do begin
     613    PreferedMapType := mtSquare;
    537614    MaxPlayerCount := 3;
    538615    with UnitKinds.AddNew('Light Infantry') do begin
     
    551628
    552629  with GameSystems.AddNew('Battle Isle 2') do begin
     630    PreferedMapType := mtHexagonHorizontal;
    553631    MaxPlayerCount := 8;
    554632    with UnitKinds.AddNew('Demon 132') do begin
     
    567645      Moves := 10;
    568646      Power := 10;
     647    end;
     648  end;
     649
     650  with GameSystems.AddNew('Panzer General') do begin
     651    PreferedMapType := mtHexagonHorizontal;
     652    MaxPlayerCount := 2;
     653    with UnitKinds.AddNew('Rifle Team') do begin
     654      Moves := 1;
     655    end;
     656    with UnitKinds.AddNew('Machine Gun') do begin
     657      Moves := 1;
     658    end;
     659    with UnitKinds.AddNew('Heavy Infantry') do begin
     660      Moves := 1;
     661    end;
     662    with UnitKinds.AddNew('Granadiers') do begin
     663      Moves := 1;
    569664    end;
    570665  end;
Note: See TracChangeset for help on using the changeset viewer.