Ignore:
Timestamp:
Apr 6, 2021, 8:11:02 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Merged trunk branch version r348 into highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/AI/StdAI/Protocol.pas

    r303 r349  
    1111  nImp = 70; { number of improvements }
    1212  nPl = 15; { max number of players, don't change! }
     13  nWonder = 28; { max number of wonders }
    1314  nUmax = 4096; { max units/player, don't set above 4096 }
    1415  nCmax = 1024; { max cities/player, don't set above 4096 }
     
    12651266mcHospital = mcSupplyShip;
    12661267
     1268// Wonders CityID constants
     1269WonderNotBuiltYet = -1;
     1270WonderDestroyed = -2;
     1271
    12671272type
    12681273  TServerCall = function (Command, Player, Subject: Integer; var Data)
     
    12871292    Flags: Cardinal;
    12881293  end;
     1294  PUn = ^TUn;
    12891295
    12901296  { TCity }
     
    13101316    // array value =1 indicates built improvement
    13111317  end;
     1318  PCity = ^TCity;
    13121319
    13131320  TModel = packed record
     
    13481355    Flags: Word;
    13491356  end;
     1357  PUnitInfo = ^TUnitInfo;
    13501358
    13511359  TCityInfo = packed record
     
    13581366    Flags: Word;
    13591367  end;
     1368  PCityInfo = ^TCityInfo;
    13601369
    13611370  TModelInfo = packed record
     
    15871596
    15881597  TTileList = array [0 .. INFIN] of Cardinal;
     1598  PTileList = ^TTileList;
    15891599  TTileObservedLastList = array [0 .. INFIN] of SmallInt;
    15901600  TOwnerList = array [0 .. INFIN] of ShortInt;
     
    16411651    Tribute: array [0 .. nPl - 1] of Integer; // no longer in use
    16421652    TributePaid: array [0 .. nPl - 1] of Integer; // no longer in use
    1643     Wonder: array [0 .. 27] of TWonderInfo;
     1653    Wonder: array [0 .. nWonder - 1] of TWonderInfo;
    16441654    Ship: array [0 .. nPl - 1] of TShipInfo;
    1645     NatBuilt: array [28 .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
     1655    NatBuilt: array [nWonder .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
    16461656    nBattleHistory: Integer;
    16471657    BattleHistory: ^TBattleList; // complete list of all my battles in the whole game
     
    17681778procedure DelphiRandomize;
    17691779
     1780
    17701781implementation
    17711782
Note: See TracChangeset for help on using the changeset viewer.