public class Army
extends Object
Modifier and Type | Method and Description |
---|---|
bool |
kbArmyAddUnit(int armyID,
int unitID)
Adds the unitID to the given army.
|
int |
kbArmyCreate(string name,
bool exclusiveUnits)
Creates a army with the given name.
|
bool |
kbArmyDestroy(int armyID)
Destroys the given army.
|
float |
kbArmyGetAPSDamageGiven(int armyID,
float timeSpan)
Returns the APS damage given by the given army.
|
float |
kbArmyGetAPSDamageTaken(int armyID,
float timeSpan)
Returns the APS damage taken by the given army.
|
float |
kbArmyGetAPSResourcesGathered(int armyID,
float timeSpan,
int resourceID)
Returns the APS resources gathered by the given army.
|
int |
kbArmyGetCreationTime(int armyID)
Returns the creation time for the given army.
|
float |
kbArmyGetCurrentAICost(int armyID)
Returns the current AI cost (worth) for the given army.
|
float |
kbArmyGetCurrentHitpoints(int armyID)
Returns the current total hitpoints for the given army.
|
float |
kbArmyGetHealth(int armyID)
Returns the health for the given army.
|
int |
kbArmyGetID(string name)
Returns the ID of the given army.
|
int |
kbArmyGetIDByIndex(long index)
Returns the index'th army ID.
|
vector |
kbArmyGetLocation(int armyID)
Returns the vector location for the given army.
|
float |
kbArmyGetMaximumAICost(int armyID)
Returns the maximum AI cost (worth) for the given army.
|
float |
kbArmyGetMaximumHitpoints(int armyID)
Returns the maximum total hitpoints for the given army.
|
int |
kbArmyGetMembershipTime(int armyID)
Returns the creation time for the given army.
|
string |
kbArmyGetName(int amryID)
Returns the name of the given army.
|
int |
kbArmyGetNumber()
Returns the number of armies.
|
int |
kbArmyGetNumberUnits(int armyID)
Returns the number of units in the given army.
|
int |
kbArmyGetNumberWithHealth(int armyID,
float minimumHealth)
Returns the number of units with at least the minimum amount of health specified for the given army.
|
int |
kbArmyGetNumberWithinLocation(int armyID,
vector point,
float range)
Returns the number of units within range of the given point in the given army.
|
int |
kbArmyGetPlanID(int armyID)
Returns the planID for the given army.
|
int |
kbArmyGetUnitID(int armyID,
long unitNumber)
Returns the appropriate unitID from the given army.
|
bool |
kbArmyRemoveUnit(int armyID,
int unitID)
Removes the unitID from the given army.
|
bool |
kbArmyRemoveUnitByIndex(int armyID,
int unitIndex)
Removes the unitIndex'th unit from the given army.
|
bool |
kbArmyRemoveUnits(int armyID)
Removes all units from the given army.
|
public int kbArmyCreate(string name, bool exclusiveUnits)
public bool kbArmyDestroy(int armyID)
public int kbArmyGetNumber()
public int kbArmyGetID(string name)
public int kbArmyGetIDByIndex(long index)
public string kbArmyGetName(int amryID)
public int kbArmyGetNumberUnits(int armyID)
public int kbArmyGetUnitID(int armyID, long unitNumber)
public bool kbArmyAddUnit(int armyID, int unitID)
public bool kbArmyRemoveUnit(int armyID, int unitID)
public bool kbArmyRemoveUnitByIndex(int armyID, int unitIndex)
public bool kbArmyRemoveUnits(int armyID)
public int kbArmyGetPlanID(int armyID)
public int kbArmyGetCreationTime(int armyID)
public int kbArmyGetMembershipTime(int armyID)
public vector kbArmyGetLocation(int armyID)
public int kbArmyGetNumberWithinLocation(int armyID, vector point, float range)
public float kbArmyGetCurrentHitpoints(int armyID)
public float kbArmyGetMaximumHitpoints(int armyID)
public float kbArmyGetHealth(int armyID)
public int kbArmyGetNumberWithHealth(int armyID, float minimumHealth)
public float kbArmyGetCurrentAICost(int armyID)
public float kbArmyGetMaximumAICost(int armyID)
public float kbArmyGetAPSDamageTaken(int armyID, float timeSpan)
public float kbArmyGetAPSDamageGiven(int armyID, float timeSpan)
public float kbArmyGetAPSResourcesGathered(int armyID, float timeSpan, int resourceID)