Changeset 349 for branches/highdpi/AI/StdAI/Protocol.pas
- Timestamp:
- Apr 6, 2021, 8:11:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/AI/StdAI/Protocol.pas
r303 r349 11 11 nImp = 70; { number of improvements } 12 12 nPl = 15; { max number of players, don't change! } 13 nWonder = 28; { max number of wonders } 13 14 nUmax = 4096; { max units/player, don't set above 4096 } 14 15 nCmax = 1024; { max cities/player, don't set above 4096 } … … 1265 1266 mcHospital = mcSupplyShip; 1266 1267 1268 // Wonders CityID constants 1269 WonderNotBuiltYet = -1; 1270 WonderDestroyed = -2; 1271 1267 1272 type 1268 1273 TServerCall = function (Command, Player, Subject: Integer; var Data) … … 1287 1292 Flags: Cardinal; 1288 1293 end; 1294 PUn = ^TUn; 1289 1295 1290 1296 { TCity } … … 1310 1316 // array value =1 indicates built improvement 1311 1317 end; 1318 PCity = ^TCity; 1312 1319 1313 1320 TModel = packed record … … 1348 1355 Flags: Word; 1349 1356 end; 1357 PUnitInfo = ^TUnitInfo; 1350 1358 1351 1359 TCityInfo = packed record … … 1358 1366 Flags: Word; 1359 1367 end; 1368 PCityInfo = ^TCityInfo; 1360 1369 1361 1370 TModelInfo = packed record … … 1587 1596 1588 1597 TTileList = array [0 .. INFIN] of Cardinal; 1598 PTileList = ^TTileList; 1589 1599 TTileObservedLastList = array [0 .. INFIN] of SmallInt; 1590 1600 TOwnerList = array [0 .. INFIN] of ShortInt; … … 1641 1651 Tribute: array [0 .. nPl - 1] of Integer; // no longer in use 1642 1652 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; 1644 1654 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; 1646 1656 nBattleHistory: Integer; 1647 1657 BattleHistory: ^TBattleList; // complete list of all my battles in the whole game … … 1768 1778 procedure DelphiRandomize; 1769 1779 1780 1770 1781 implementation 1771 1782
Note:
See TracChangeset
for help on using the changeset viewer.