|  |  | Type | Name | Arguments | | - | - | CAiTaskBuildSquad | m_xAllocator | 
| - | - | CAiSolution | m_xSolution | 
| - | - | CAiNeedPtr | m_pxUnitNeed | 
| - | - | CPropDB | m_xUnitDB | 
| - | - | int | m_iTargetIdx | 
| - | - | int | m_iCurChkLevel | 
| - | - | int | m_iCurrentDefensePool | 
| - | - | array | m_aiReservedLevelSlots | 
| - | S | CPropDB | ms_xCompareDB | 
| - | - | ^CAiBrain | m_pxBrain | 
| - | - | ^CAiSensor | m_pxSensor | 
| - | - | string | m_sPlayerID | 
| - | - | int | m_iPlayerID | 
| - | - | string | m_sBehavior | 
| - | - | string | m_sGametype | 
| - | - | int | m_iRefreshCounter | 
| - | - | bool | m_bDefending | 
| - | - | bool | m_bRefreshUnits | 
| - | - | bool | m_bNow | 
| - | - | int | m_iAge | 
| X | - | void | constructor | (
) | 
| X | - | void | destructor | (
) | 
| - | - | ref CAiGoalMinistryOfDefense | op_Assign | (
 ref CAiGoalMinistryOfDefense ) | 
| X | - | void | Activate | (
) | 
| X | - | void | AddTask | (
 ^CAiTask p_pxTask ) | 
| X | - | void | constructor | (
 bool p_bPermanent ) | 
| X | - | bool | Deactivate | (
) | 
| X | - | void | EvtRequestAccepted | (
 ^CAiRequestInfo p_pxRequest ) | 
| X | - | void | EvtRequestFailed | (
 ^CAiRequestInfo p_pxRequest ) | 
| X | - | void | EvtRequestRejected | (
 ^CAiRequestInfo p_pxRequest ) | 
| X | - | void | EvtRequestSucceeded | (
 ^CAiRequestInfo p_pxRequest ) | 
| X | - | ^CAiAllocationMgr | GetAiAllocationMgr | (
) | 
| X | - | ^CAiBrain | GetAiBrain | (
) | 
| X | - | ^CAiSensor | GetAiSensor | (
) | 
| X | - | ^CAiTechTree | GetAiTechTree | (
) | 
| X | - | string | GetDbgString | (
) | 
| X | - | CAiGoalHndl | GetHandle | (
) | 
| X | - | int | GetNumTasks | (
) | 
| X | - | real | GetPriority | (
) | 
| X | - | string | GetSaveName | (
) | 
| X | - | ^CAiTask | GetTask | (
 int p_iIndex ) | 
| X | - | int | GetThinkWait | (
) | 
| X | - | bool | Init | (
 ^CAiBrain p_pxBrain ) | 
| X | - | bool | IsActive | (
) | 
| X | - | bool | IsEnabled | (
) | 
| X | - | bool | IsPermanent | (
) | 
| X | - | bool | IsReached | (
) | 
| X | - | void | Load | (
 ^CUOFReaderNode p_pxReader ) | 
| X | - | void | LoadData | (
 ^CUOFReaderNode p_pxReaderNode ) | 
| X | - | void | OnUnitAdded | (
 ref CAiObjWrap p_rxOW  ,  ^CAiNodeInstance p_pxNI ) | 
| X | - | void | OnUserInteraction | (
 CAiObjWrap p_kxrObj ) | 
| X | - | void | RecalculateCurrentPriority | (
) | 
| X | - | void | RemoveAllRequests | (
) | 
| X | - | void | RemoveTask | (
 ^CAiTask p_pxTask ) | 
| X | - | void | RemoveTaskUS | (
 int p_iIndex ) | 
| X | - | void | Save | (
 ^CUOFWriterNode p_pxWriter ) | 
| X | - | void | SetDbgString | (
 string p_krsDbg ) | 
| X | - | void | SetPermanent | (
 bool p_bPermanent ) | 
| X | - | void | SetPriority | (
 real p_fPrio ) | 
| X | - | void | SetRequesterFor | (
 ^CAiRequestInfo p_pxInfo ) | 
| X | - | void | SetThinkWait | (
 int p_iThinkWait ) | 
| X | - | void | Shut | (
) | 
| X | - | void | Think | (
) | 
| X | - | void | SetHighDefenseMode | (
 bool p_bHiDefMode ) | 
| X | - | void | ScheduleRefreshUnits | (
) | 
| - | - | void | RefreshUnits | (
) | 
| X | - | int | NumUnits | (
) | 
| X | - | void | SetDefending | (
 bool p_bDefending ) | 
| X | - | bool | IsDefending | (
) | 
| X | - | void | ComputeCurrentAgeClasses | (
 ref CAiGoalMinistryOfDefense.CUnitsDescriptor p_rxUnitDesc  ,  int p_iLevel ) | 
| X | - | bool | GetNextBadUnit | (
 ref CAiObjWrap p_rxOW  ,  ^CAiObjWrapList p_pxUnitPool ) | 
| X | - | bool | ComputeMostEfficientUnitForTarget | (
 ref CAiObjWrap p_rxOW  ,  ^CAiObjWrapList p_pxUnitPool  ,  CAiObjWrap p_xTarget ) | 
| X | - | bool | GetNextGoodUnit | (
 ref CAiObjWrap p_rxOW  ,  ^CAiObjWrapList p_pxUnitPool  ,  ref CAiObjWrapList p_rxTargets  ,  ref bool po_rbIsEfficient ) | 
| X | - | void | SeparateBadFromGoodUnits | (
 ^CAiObjWrapList p_pxUnitPool  ,  ref CAiObjWrapList p_rxBadUnits  ,  ref CAiObjWrapList p_rxGoodUnits  ,  int p_iLevel ) | 
| X | - | bool | QueryUnits | (
 ref CAiObjWrapList p_rxOWL  ,  int p_iMin  ,  int p_iMax  ,  real p_fAllowedBadUnitWeight  ,  int p_iMaxHeroCount  ,  ref CAiObjWrapList p_rxTargets ) | 
| X | - | bool | QueryUnits | (
 ref CAiObjWrapList p_rxOWL  ,  int p_iMin  ,  int p_iMax  ,  real p_fAllowedBadUnitWeight  ,  int p_iMaxHeroCount  ,  ref CAiObjWrapList p_rxTargets  ,  int p_iLevel ) | 
| X | - | bool | QueryUnits | (
 ref CAiObjWrapList p_rxOWL  ,  int p_iMin  ,  int p_iMax  ,  real p_fAllowedBadUnitWeight  ,  int p_iMaxHeroCount  ,  ref CAiObjWrapList p_rxTargets  ,  int p_iLevel  ,  bool p_bOnlyEfficient ) | 
| X | - | bool | QueryEfficientUnits | (
 ref CAiObjWrapList p_rxOWL  ,  int p_iMin  ,  int p_iMax  ,  ref CAiObjWrapList p_rxTargets ) | 
| X | - | void | QueryUnits | (
 ref CAiObjWrapList p_rxUnits  ,  ^CAiNodeInstance p_pxNI  ,  int p_iMin  ,  int p_iMax ) | 
| X | - | bool | QueryUnits | (
 ref CAiObjWrapList p_rxUnits  ,  int p_iMin  ,  int p_iMax  ,  ref CAiObjWrapList p_rxFrom ) | 
| X | - | void | QueryUnits | (
 ref CAiObjWrapList p_rxUnits ) | 
| X | - | void | QueryUnits | (
 ref CAiObjWrapList p_rxUnits  ,  bool p_bRemove ) | 
| X | - | bool | IsAllowedUnit | (
 CAiObjWrap p_xObj ) | 
| - | - | bool | IsPyramidFull | (
) | 
| X | - | void | AddUnitsToPool | (
 ref CAiObjWrapList p_rxUnits ) | 
| X | - | void | RemoveUnitsFromPool | (
 ref CAiObjWrapList p_rxUnits ) | 
| - | - | int | ComputeFreeLevelSlots | (
 int p_iLevel ) | 
| - | - | int | ComputeUnitCount | (
 string p_sClassName  ,  ref CAiAttribs p_rxAttribs  ,  int p_iLevel ) | 
| - | - | int | ComputeUnitCount | (
 int p_iLevel ) | 
| - | - | void | ComputeSolutionFromNI | (
 ^CAiNodeInstance p_pxNI ) | 
| X | - | void | SpawnAddNextBestUnit | (
) | 
| - | - | bool | ComputeNextBestUnitSolution | (
) | 
| - | - | bool | ComputeNextBestUnitSolution | (
 bool p_bSpawn ) | 
| - | - | void | GetAvailableNPCs | (
 ref array p_rasClasses ) |