Changeset 442 for trunk/AI/StdAI/AI.pas


Ignore:
Timestamp:
May 18, 2022, 10:43:27 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.