Changeset 442 for trunk/AI


Ignore:
Timestamp:
May 18, 2022, 10:43:27 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/AI/StdAI
Files:
3 edited

Legend:

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

    r328 r442  
    176176  LeaveOutValue: array[0..nAdv - 1] of integer;
    177177
    178 
    179178constructor TAI.Create(Nation: integer);
    180179begin
     
    209208  Result := Data.BehaviorFlags and bBarbarina <> 0;
    210209end;
    211 
    212210
    213211//-------------------------------
     
    653651      Result := ad;
    654652end;
    655 
    656653
    657654//-------------------------------
     
    11451142        end;
    11461143      end;
    1147 end; // ProcessSettlers
    1148 
     1144end;
    11491145
    11501146//-------------------------------
     
    13501346  SetAdvanceValues;
    13511347
    1352 
    13531348{$IFDEF DEBUG}
    13541349(*for p1:=0 to nPl-1 do
     
    13801375    end;
    13811376end;
    1382 
    13831377{$ENDIF}
    1384 
    13851378
    13861379procedure TAI.CheckGender;
     
    14161409  end;
    14171410end;
    1418 
    14191411
    14201412procedure TAI.SetAdvanceValues;
     
    17851777end;
    17861778
    1787 
    17881779procedure TAI.MoveUnitsHome;
    17891780const
     
    20552046            Dec(UnitLack[District[Loc], ModelCat[mix]])
    20562047        end;
    2057 end; // MoveUnitsHome
    2058 
     2048end;
    20592049
    20602050procedure TAI.CheckAttack(uix: integer);
     
    21762166    until Exhausted;
    21772167  end;
    2178 end; // CheckAttack
    2179 
     2168end;
    21802169
    21812170procedure TAI.Patrol(uix: integer);
     
    22822271    until Exhausted;
    22832272  end;
    2284 end; // Patrol
     2273end;
    22852274
    22862275procedure TAI.AttackAndPatrol;
     
    23422331          Patrol(uix);
    23432332      end;
    2344 end; // AttackAndPatrol
    2345 
     2333end;
    23462334
    23472335function TAI.HavePort: boolean;
     
    23692357      end;
    23702358end;
    2371 
    23722359
    23732360procedure TAI.SetCityProduction;
     
    28362823
    28372824  ChangeHomeCities;
    2838 end; // SetCityProduction
    2839 
     2825end;
    28402826
    28412827function TAI.ChooseGovernment: integer;
     
    28552841    Result := gDespotism;
    28562842end;
    2857 
    28582843
    28592844//-------------------------------
     
    29272912    end;
    29282913end;
    2929 
    29302914
    29312915function TAI.WantNegotiation(Nation: integer; NegoTime: TNegoTime): boolean;
     
    31533137    end;
    31543138  end;
    3155 end; // Negotiation
    3156 
     3139end;
    31573140
    31583141procedure SetLeaveOutValue;
  • trunk/AI/StdAI/Barbarina.pas

    r328 r442  
    833833  if Result then
    834834    Moved[uix] := True;
    835 end; // ProcessMove
     835end;
    836836
    837837procedure TBarbarina.AttackAndPatrol;
     
    12051205            end
    12061206  until not BackToStart;
    1207 end; // AttackAndPatrol
     1207end;
    12081208
    12091209procedure TBarbarina.Barbarina_SetCityProduction;
  • trunk/AI/StdAI/ToolAI.pas

    r328 r442  
    106106  end;
    107107
    108 
    109108const
    110109  // no-formations
     
    132131  mxAdjacent = $00000001;
    133132
    134 
    135133var
    136134  nContinent, nOcean, nDistrict: integer;
     
    145143// total number of prerequisites for each advance
    146144
    147 
    148145implementation
    149146
     
    166163  TurnsAfterLoad: array[0..lxmax * lymax - 1] of shortint;
    167164
    168 
    169165procedure ReplaceD(Start, Stop: pinteger; Raider, Twix: integer);
    170166begin
     
    183179  Result := Start;
    184180end;
    185 
    186181
    187182function TToolAI.CenterOfEmpire: integer;
     
    263258end;
    264259
    265 
    266260//------------------------------------------------------------------------------
    267261// City Tiles Processing
     
    311305      end;
    312306end;
    313 
    314307
    315308//------------------------------------------------------------------------------
     
    469462          Unit_StartJob(uix, TileJob[JobLocOfSettler[uix]]);
    470463      end;
    471 end; // JobAssignment_Go
    472 
     464end;
    473465
    474466//------------------------------------------------------------------------------
     
    594586  end;
    595587end;
    596 
    597588
    598589//------------------------------------------------------------------------------
     
    898889      Result := csForbiddenTile;
    899890  end;
    900 end; // CheckStep
     891end;
    901892
    902893(*
     
    10201011end;
    10211012
    1022 
    10231013//------------------------------------------------------------------------------
    10241014// Oversea Transport
     
    11081098  Pile.Free;
    11091099end;
    1110 
    11111100
    11121101function TToolAI.SeaTransport_MakeGroupPlan(
     
    14721461end;
    14731462
    1474 
    14751463//------------------------------------------------------------------------------
    14761464// Misc
     
    14931481      end;
    14941482end;
    1495 
    14961483
    14971484//------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.