Ignore:
Timestamp:
Mar 25, 2021, 3:02:29 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Use nWonder constant as number of wonders instead of numeric value.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AI/StdAI/Protocol.pas

    r319 r328  
    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 }
     
    12911292    Flags: Cardinal;
    12921293  end;
     1294  PUn = ^TUn;
    12931295
    12941296  { TCity }
     
    13141316    // array value =1 indicates built improvement
    13151317  end;
     1318  PCity = ^TCity;
    13161319
    13171320  TModel = packed record
     
    13521355    Flags: Word;
    13531356  end;
     1357  PUnitInfo = ^TUnitInfo;
    13541358
    13551359  TCityInfo = packed record
     
    13621366    Flags: Word;
    13631367  end;
     1368  PCityInfo = ^TCityInfo;
    13641369
    13651370  TModelInfo = packed record
     
    15911596
    15921597  TTileList = array [0 .. INFIN] of Cardinal;
     1598  PTileList = ^TTileList;
    15931599  TTileObservedLastList = array [0 .. INFIN] of SmallInt;
    15941600  TOwnerList = array [0 .. INFIN] of ShortInt;
     
    16451651    Tribute: array [0 .. nPl - 1] of Integer; // no longer in use
    16461652    TributePaid: array [0 .. nPl - 1] of Integer; // no longer in use
    1647     Wonder: array [0 .. 27] of TWonderInfo;
     1653    Wonder: array [0 .. nWonder - 1] of TWonderInfo;
    16481654    Ship: array [0 .. nPl - 1] of TShipInfo;
    1649     NatBuilt: array [28 .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
     1655    NatBuilt: array [nWonder .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
    16501656    nBattleHistory: Integer;
    16511657    BattleHistory: ^TBattleList; // complete list of all my battles in the whole game
Note: See TracChangeset for help on using the changeset viewer.