public class Plan
extends Object
Modifier and Type | Method and Description |
---|---|
int |
aiGetNumberIdlePlans(int planType)
Gets the of idle plans of the given type.
|
bool |
aiPlanAddUnit(int planID,
int unitID)
Adds a unit to the plan.
|
bool |
aiPlanAddUnitType(int planID,
int unitTypeID,
int numberNeed,
int numberWant,
int numberMax)
Adds a unit type to the plan.
|
bool |
aiPlanAddUserVariableBool(int planID,
int planVariableIndex,
string name,
int numberValues)
Adds the variable to the given plan.
|
bool |
aiPlanAddUserVariableFloat(int planID,
int planVariableIndex,
string name,
int numberValues)
Adds the variable to the given plan.
|
bool |
aiPlanAddUserVariableInt(int planID,
int planVariableIndex,
string name,
int numberValues)
Adds the variable to the given plan.
|
bool |
aiPlanAddUserVariableString(int planID,
int planVariableIndex,
string name,
int numberValues)
Adds the variable to the given plan.
|
bool |
aiPlanAddUserVariableVector(int planID,
int planVariableIndex,
string name,
int numberValues)
Adds the variable to the given plan.
|
bool |
aiPlanAddWaypoint(int planID,
vector waypoint)
Adds the waypoint to the given plan.
|
int |
aiPlanCreate(string planName,
int typeName)
Creates a plan of the given name and type.
|
bool |
aiPlanDestroy(int planID)
Destroys the given plan.
|
bool |
aiPlanDestroyByName(string name)
Destroys the plan of the given name.
|
bool |
aiPlanGetActive(int planID)
Gets the active-ness of the given plan.
|
int |
aiPlanGetActualPriority(int planID)
Returns the priority of the given plan.
|
bool |
aiPlanGetAllowUnderAttackResponse(int planID)
Gets the UA response-ness of the given plan.
|
bool |
aiPlanGetAttack(int planID)
Gets the attack flag of the given plan.
|
int |
aiPlanGetBaseID(int planID)
Gets the plan's base id.
|
int |
aiPlanGetDesiredPriority(int planID)
Returns the priority of the given plan.
|
bool |
aiPlanGetEconomy(int planID)
Gets the economy flag of the given plan.
|
int |
aiPlanGetEscrowID(int planID)
Gets the escrow for the plan.
|
int |
aiPlanGetID(string name)
Returns the ID of the plan with the given name.
|
int |
aiPlanGetIDByActiveIndex(int activeIndex)
Returns the ID of the plan with the given active index.
|
int |
aiPlanGetIDByIndex(int planType,
int planState,
bool active,
int index)
Returns the ID of matching plan.
|
int |
aiPlanGetIDByTypeAndVariableType(int planType,
int varType,
int varID,
bool active)
Returns the ID of the plan with the given parms.
|
vector |
aiPlanGetInitialPosition(int planID)
Returns the initial positon that was set for this plan.
|
vector |
aiPlanGetLocation(int planID)
Returns the location for this plan.
|
bool |
aiPlanGetMilitary(int planID)
Gets the military flag of the given plan.
|
string |
aiPlanGetName(int planID)
Returns the name of the given plan.
|
bool |
aiPlanGetNoMoreUnits(int planID)
Gets the noMoreUnits-ness of the given plan.
|
int |
aiPlanGetNumber(int planType,
int planState,
bool active)
Returns the number of matching plans.
|
int |
aiPlanGetNumberUnits(int planID,
int unitTypeID)
Returns the number of units currently assigned in the given plan.
|
int |
aiPlanGetNumberUserVariableValues(int planID,
int planVariableIndex)
Returns the number of values for this variable index.
|
int |
aiPlanGetNumberVariableValues(int planID,
int planVariableIndex)
Returns the number of values for this variable index.
|
bool |
aiPlanGetOrphan(int planID)
Gets the orphan-ness of the given plan.
|
int |
aiPlanGetState(int planID)
Returns the state of the given plan.
|
int |
aiPlanGetType(int planID)
Returns the type of the given plan.
|
long |
aiPlanGetUnitByIndex(int planID,
int index)
Returns the unit ID of a particular unit in the plan
|
int |
aiPlanGetUnitStance(int planID)
Gets the unit stance of the given plan.
|
bool |
aiPlanGetUserVariableBool(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
float |
aiPlanGetUserVariableFloat(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
int |
aiPlanGetUserVariableInt(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
string |
aiPlanGetUserVariableString(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
vector |
aiPlanGetUserVariableVector(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
bool |
aiPlanGetVariableBool(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
float |
aiPlanGetVariableFloat(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
int |
aiPlanGetVariableInt(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
string |
aiPlanGetVariableString(int planID,
int planVariableIndex)
Gets the given variable of the given plan.
|
vector |
aiPlanGetVariableVector(int planID,
int planVariableIndex,
int valueIndex)
Gets the given variable of the given plan.
|
bool |
aiPlanRemoveUserVariable(int planID,
int planVariableIndex)
Removes the user variable.
|
bool |
aiPlanRemoveUserVariables(int planID)
Removes all of the user variables from the given plan.
|
bool |
aiPlanRemoveUserVariableValue(int planID,
int planVariableIndex,
int variableIndex)
Removes the index-th value of the user variable.
|
bool |
aiPlanRemoveVariableValue(int planID,
int planVariableIndex,
int variableIndex)
Removes the index-th value of the variable.
|
bool |
aiPlanSetActive(int planID,
bool active)
Sets active on/off for the given plan.
|
bool |
aiPlanSetAllowUnderAttackResponse(int planID,
bool uAR)
Sets under attack response on/off for the given plan.
|
bool |
aiPlanSetAttack(int planID,
bool v)
Sets attack flag on/off for the given plan.
|
bool |
aiPlanSetBaseID(int planID,
int baseID)
Sets the plan's base id.
|
bool |
aiPlanSetDesiredPriority(int planID,
int priority)
Sets the priority of the given plan.
|
bool |
aiPlanSetEconomy(int planID,
bool v)
Sets economy on/off for the given plan.
|
bool |
aiPlanSetEscrowID(int planID,
int escrowID)
Sets the escrow for the plan.
|
bool |
aiPlanSetEventHandler(int planID,
int eventType,
string handlerName)
Sets event handler function for the given plan and event.
|
void |
aiPlanSetInitialPosition(int planID,
vector initialPosition)
Sets the initial positon for this plan.
|
bool |
aiPlanSetMilitary(int planID,
bool v)
Sets military on/off for the given plan.
|
bool |
aiPlanSetNoMoreUnits(int planID,
bool v)
Sets noMoreUnits on/off for the given plan.
|
bool |
aiPlanSetNumberUserVariableValues(int planID,
int planVariableIndex,
int numberValues,
bool clearCurrentValues)
Sets the number of values for this variable.
|
bool |
aiPlanSetNumberVariableValues(int planID,
int planVariableIndex,
int numberValues,
bool clearCurrentValues)
Sets the number of values for this variable.
|
bool |
aiPlanSetOrphan(int planID,
bool orphan)
Sets orphan on/off for the given plan.
|
bool |
aiPlanSetRequiresAllNeedUnits(int planID,
bool rANU)
Sets 'requiresAllNeedUnits' on/off for the given plan.
|
bool |
aiPlanSetUnitStance(int planID,
int stance)
Sets unit stance for the given plan.
|
bool |
aiPlanSetUserVariableBool(int planID,
int planVariableIndex,
int valueIndex,
bool value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetUserVariableFloat(int planID,
int planVariableIndex,
int valueIndex,
float value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetUserVariableInt(int planID,
int planVariableIndex,
int valueIndex,
int value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetUserVariableString(int planID,
int planVariableIndex,
int valueIndex,
string value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetUserVariableVector(int planID,
int planVariableIndex,
int valueIndex,
vector value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetVariableBool(int planID,
int planVariableIndex,
int valueIndex,
bool value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetVariableFloat(int planID,
int planVariableIndex,
int valueIndex,
float value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetVariableInt(int planID,
int planVariableIndex,
int valueIndex,
int value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetVariableString(int planID,
int planVariableIndex,
int valueIndex,
string value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetVariableVector(int planID,
int planVariableIndex,
int valueIndex,
vector value)
Sets the given variable of the given plan.
|
bool |
aiPlanSetWaypoints(int planID,
int pathID)
Sets the waypoints of the given plan to the waypoints of the given path.
|
public final int cPlanMove
public final int cPlanAttack
public final int cPlanBuild
public final int cPlanTrain
public final int cPlanResearch
public final int cPlanWork
public final int cPlanGather
public final int cPlanExplore
public final int cPlanData
public final int cPlanProgression
public final int cPlanBuildWall
public final int cPlanFarm
public final int cPlanHunt
public final int cPlanHuntAggressive
public final int cPlanFish
public final int cPlanHerd
public final int cPlanEmpower
public final int cPlanTransport
public final int cPlanDropoffResource
public final int cPlanGatherRelic
public final int cPlanAttackStrategy
public final int cPlanGodPower
public final int cPlanDefend
public final int cPlanReserve
public final int cPlanGoal
public final int cPlanTower
public final int cPlanGatherGoal
public final int cPlanRepair
public final int cPlanTrade
public final int cPlanEventDone
public final int cPlanEventFailed
public final int cPlanEventPoll
public final int cPlanEventIdle
public final int cPlanStateNone
public final int cPlanStateDone
public final int cPlanStateFailed
public final int cPlanStateBuild
public final int cPlanStateGather
public final int cPlanStatePlace
public final int cPlanStateExplore
public final int cPlanStateTrain
public final int cPlanStateResearch
public final int cPlanStateAttack
public final int cPlanStateGoto
public final int cPlanStateEmpower
public final int cPlanStateEnter
public final int cPlanStateExit
public final int cPlanStateEvaluate
public final int cPlanStatePatrol
public final int cPlanStateRetreat
public final int cPlanStateWorking
public final int cPlanStateTransport
public final int cPlanStateDualPlace
public final int cPlanStateWait
public final int cPlanStateCast
public final int cPlanStateVillagerAttack
public final int cPlanStateUnknown
public bool aiPlanAddUnit(int planID, int unitID)
public vector aiPlanGetLocation(int planID)
public vector aiPlanGetInitialPosition(int planID)
public void aiPlanSetInitialPosition(int planID, vector initialPosition)
public bool aiPlanSetWaypoints(int planID, int pathID)
public bool aiPlanAddWaypoint(int planID, vector waypoint)
public int aiPlanGetNumberVariableValues(int planID, int planVariableIndex)
public bool aiPlanSetNumberVariableValues(int planID, int planVariableIndex, int numberValues, bool clearCurrentValues)
public bool aiPlanRemoveVariableValue(int planID, int planVariableIndex, int variableIndex)
public bool aiPlanSetVariableInt(int planID, int planVariableIndex, int valueIndex, int value)
public int aiPlanGetVariableInt(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanSetVariableFloat(int planID, int planVariableIndex, int valueIndex, float value)
public float aiPlanGetVariableFloat(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanSetVariableVector(int planID, int planVariableIndex, int valueIndex, vector value)
public vector aiPlanGetVariableVector(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanSetVariableBool(int planID, int planVariableIndex, int valueIndex, bool value)
public bool aiPlanGetVariableBool(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanSetVariableString(int planID, int planVariableIndex, int valueIndex, string value)
public string aiPlanGetVariableString(int planID, int planVariableIndex)
public int aiPlanGetNumberUserVariableValues(int planID, int planVariableIndex)
public bool aiPlanSetNumberUserVariableValues(int planID, int planVariableIndex, int numberValues, bool clearCurrentValues)
public bool aiPlanRemoveUserVariables(int planID)
public bool aiPlanRemoveUserVariable(int planID, int planVariableIndex)
public bool aiPlanRemoveUserVariableValue(int planID, int planVariableIndex, int variableIndex)
public bool aiPlanAddUserVariableInt(int planID, int planVariableIndex, string name, int numberValues)
public bool aiPlanSetUserVariableInt(int planID, int planVariableIndex, int valueIndex, int value)
public int aiPlanGetUserVariableInt(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanAddUserVariableFloat(int planID, int planVariableIndex, string name, int numberValues)
public bool aiPlanSetUserVariableFloat(int planID, int planVariableIndex, int valueIndex, float value)
public float aiPlanGetUserVariableFloat(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanAddUserVariableVector(int planID, int planVariableIndex, string name, int numberValues)
public bool aiPlanSetUserVariableVector(int planID, int planVariableIndex, int valueIndex, vector value)
public vector aiPlanGetUserVariableVector(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanAddUserVariableBool(int planID, int planVariableIndex, string name, int numberValues)
public bool aiPlanSetUserVariableBool(int planID, int planVariableIndex, int valueIndex, bool value)
public bool aiPlanGetUserVariableBool(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanAddUserVariableString(int planID, int planVariableIndex, string name, int numberValues)
public bool aiPlanSetUserVariableString(int planID, int planVariableIndex, int valueIndex, string value)
public string aiPlanGetUserVariableString(int planID, int planVariableIndex, int valueIndex)
public bool aiPlanGetActive(int planID)
public bool aiPlanSetActive(int planID, bool active)
public bool aiPlanGetNoMoreUnits(int planID)
public bool aiPlanSetNoMoreUnits(int planID, bool v)
public bool aiPlanGetOrphan(int planID)
public bool aiPlanSetOrphan(int planID, bool orphan)
public bool aiPlanGetAllowUnderAttackResponse(int planID)
public bool aiPlanSetAllowUnderAttackResponse(int planID, bool uAR)
public int aiPlanGetUnitStance(int planID)
public bool aiPlanSetUnitStance(int planID, int stance)
public bool aiPlanSetRequiresAllNeedUnits(int planID, bool rANU)
public bool aiPlanSetEventHandler(int planID, int eventType, string handlerName)
public bool aiPlanSetEscrowID(int planID, int escrowID)
public int aiPlanGetEscrowID(int planID)
public bool aiPlanGetEconomy(int planID)
public bool aiPlanSetEconomy(int planID, bool v)
public bool aiPlanGetMilitary(int planID)
public bool aiPlanSetMilitary(int planID, bool v)
public bool aiPlanGetAttack(int planID)
public bool aiPlanSetAttack(int planID, bool v)
public bool aiPlanSetBaseID(int planID, int baseID)
public int aiPlanGetBaseID(int planID)
public int aiGetNumberIdlePlans(int planType)
public bool aiPlanAddUnitType(int planID, int unitTypeID, int numberNeed, int numberWant, int numberMax)
public long aiPlanGetUnitByIndex(int planID, int index)
public int aiPlanGetNumberUnits(int planID, int unitTypeID)
public int aiPlanCreate(string planName, int typeName)
public bool aiPlanDestroy(int planID)
public bool aiPlanDestroyByName(string name)
public int aiPlanGetID(string name)
public int aiPlanGetIDByTypeAndVariableType(int planType, int varType, int varID, bool active)
public int aiPlanGetIDByActiveIndex(int activeIndex)
public string aiPlanGetName(int planID)
public int aiPlanGetType(int planID)
public int aiPlanGetState(int planID)
public int aiPlanGetActualPriority(int planID)
public int aiPlanGetDesiredPriority(int planID)
public bool aiPlanSetDesiredPriority(int planID, int priority)
public int aiPlanGetNumber(int planType, int planState, bool active)
public int aiPlanGetIDByIndex(int planType, int planState, bool active, int index)