public class TechTree
extends Object
Modifier and Type | Field and Description |
---|---|
int |
cTechStatusActive |
int |
cTechStatusAvailable |
int |
cTechStatusObtainable |
int |
cTechStatusPersistent |
int |
cTechStatusResearching |
int |
cTechStatusUnobtainable |
int |
cUpgradeTypeAny |
int |
cUpgradeTypeArmor |
int |
cUpgradeTypeAttack |
int |
cUpgradeTypeHitpoints |
int |
cUpgradeTypeSpeed |
int |
cUpgradeTypeTrainPoints |
int |
cUpgradeTypeWorkRate |
Modifier and Type | Method and Description |
---|---|
bool |
kbCanAffordTech(int techID,
int escrowID)
Returns true if the player can afford the technology.
|
string |
kbGetCivName(int civID)
Returns the civilization name for the given civilization.
|
string |
kbGetCulture(int cultureID)
Returns the culture name for the given culture.
|
float |
kbGetTechAICost(int techID)
Returns the AI cost for the given technology ID.
|
string |
kbGetTechName(int techID)
Returns the name of the technology ID.
|
float |
kbGetTechPercentComplete(int techID)
Returns the percent complete for the the requested tech of the current player.
|
int |
kbGetTechStatus(int techID)
Returns the current technology status for the current player of the requested tech.
|
float |
kbTechCostPerResource(int techID,
int resourceID)
Returns the cost of the technology for the given resource.
|
bool |
kbTechTreeAddDropsiteUnitIDByResource(int resourceID)
Adds the base unit type ID as a dropsite for the given resource.
|
bool |
kbTechTreeAddMinorGodPref(int techID)
Have progressions preference for this minor god selection.
|
bool |
kbTechTreeClearDropsiteUnitIDsByResource(int resourceID)
Clears the list of dropsites for the given resource type.
|
int |
kbTechTreeGetCheapestUnitUpgrade(int protoUnitID,
int upgradeQueryType,
int resourceFilterID,
int buildingFilterID,
bool echoResults,
int affectedUnitType)
Returns the ID of the cheapest unit upgrade technology.
|
int |
kbTechTreeGetDropsiteUnitIDByResource(int resourceID,
int index)
Returns the index'th unitID of the dropsite that takes the given resource.
|
int |
kbTechTreeGetGPTechID(int minorGodTechID)
Returns the GP techID that is enabled by minorGodTechID.
|
int |
kbTechTreeGetMatrixUnitTypeIDByIndex(int index)
Returns the matrix unit typeID at the given index.
|
int |
kbTechTreeGetMinorGodChoices(int index,
int age)
Returns the minorGodTechID of the given index, given the age, -1 means the next age.
|
int |
kbTechTreeGetMinorGodMythUnitByIndex(int minorGodTechID,
int index)
Returns the protoID of a myth unit
|
int |
kbTechTreeGetMinorGodMythUnitTotal(int minorGodTechID)
Returns the total number of myth units enabled by this minor god.
|
int |
kbTechTreeGetNumberDropsiteUnitIDsByResource(int resourceID)
Returns the number of unit typeIDs for dropsites that take the given resource.
|
int |
kbTechTreeGetNumberMatrixUnitTypeIDs()
Returns the number of matrix unit type IDs.
|
int |
kbTechTreeGetNumberObtainProtos(int techID)
Returns the number of protos that the given techID can be obtained from.
|
int |
kbTechTreeGetNumberTrainProtos(int unitTypeID)
Returns the number of protos that can train the given unitTypeID.
|
int |
kbTechTreeGetRandomUnitUpgrade()
Returns the ID of a randomly chosen unit upgrade technology.
|
int |
kbTechTreeGetTotalUnitIDsByFunction(int functionID)
Returns the total number of unitIDs that performs the given function.
|
int |
kbTechTreeGetTotalUnitIDsByMatrix(long mainUnitTypeID,
int counterUnitTypeID)
Returns the total number of unitIDs matching the main type that has the given counter type.
|
int |
kbTechTreeGetUnitIDByMatrixIndex(long mainUnitTypeID,
int counterUnitTypeID,
int index)
Returns the index'th unitID matching the main type that has the given counter type.
|
int |
kbTechTreeGetUnitIDByObtainIndex(int techID,
int obtainProtoIndex)
Returns index'th unitTypeID of the unit that the given techID, can be obtained from.
|
int |
kbTechTreeGetUnitIDByTrain(int unitTypeID,
int civID)
Returns the unitTypeID of the unit that can train the given unitTypeID.
|
int |
kbTechTreeGetUnitIDByTrainIndex(int unitTypeID,
int trainProtoIndex)
Returns index'th unitTypeID of the unit that can train the given unitTypeID.
|
int |
kbTechTreeGetUnitIDTypeByFunctionIndex(int functionID,
int index)
Returns the index'th unitID of the unit that performs the given function.
|
int |
kbTechTreeGetUnitUpgradeTech(int unitTypeID,
int index)
Returns the index'th upgrade technologies of the unit type.
|
int |
kbTechTreeGetUnitUpgradeTechTotal(int unitTypeID)
Returns the total number of upgrade technologies of the unit type.
|
bool |
kbTechTreeIsMinorGod(int techID)
Returns true if techID is a minor god technology.
|
bool |
kbTechTreeRemoveMinorGodPref(int techID)
Removes this minor god as preference in Progressions.
|
public final int cTechStatusUnobtainable
public final int cTechStatusObtainable
public final int cTechStatusAvailable
public final int cTechStatusResearching
public final int cTechStatusActive
public final int cTechStatusPersistent
public final int cUpgradeTypeAttack
public final int cUpgradeTypeArmor
public final int cUpgradeTypeHitpoints
public final int cUpgradeTypeSpeed
public final int cUpgradeTypeWorkRate
public final int cUpgradeTypeTrainPoints
public final int cUpgradeTypeAny
public string kbGetCulture(int cultureID)
kbGetCulture()
public string kbGetCivName(int civID)
public float kbGetTechAICost(int techID)
public int kbGetTechStatus(int techID)
public float kbGetTechPercentComplete(int techID)
public float kbTechCostPerResource(int techID, int resourceID)
public bool kbCanAffordTech(int techID, int escrowID)
public string kbGetTechName(int techID)
public int kbTechTreeGetUnitUpgradeTechTotal(int unitTypeID)
public int kbTechTreeGetUnitUpgradeTech(int unitTypeID, int index)
public int kbTechTreeGetCheapestUnitUpgrade(int protoUnitID, int upgradeQueryType, int resourceFilterID, int buildingFilterID, bool echoResults, int affectedUnitType)
public int kbTechTreeGetRandomUnitUpgrade()
public bool kbTechTreeIsMinorGod(int techID)
public int kbTechTreeGetGPTechID(int minorGodTechID)
public bool kbTechTreeAddMinorGodPref(int techID)
public bool kbTechTreeRemoveMinorGodPref(int techID)
public int kbTechTreeGetMinorGodMythUnitTotal(int minorGodTechID)
public int kbTechTreeGetMinorGodMythUnitByIndex(int minorGodTechID, int index)
public int kbTechTreeGetMinorGodChoices(int index, int age)
public int kbTechTreeGetNumberMatrixUnitTypeIDs()
public int kbTechTreeGetMatrixUnitTypeIDByIndex(int index)
public int kbTechTreeGetTotalUnitIDsByMatrix(long mainUnitTypeID, int counterUnitTypeID)
public int kbTechTreeGetUnitIDByMatrixIndex(long mainUnitTypeID, int counterUnitTypeID, int index)
public int kbTechTreeGetTotalUnitIDsByFunction(int functionID)
public int kbTechTreeGetUnitIDTypeByFunctionIndex(int functionID, int index)
public int kbTechTreeGetNumberDropsiteUnitIDsByResource(int resourceID)
public bool kbTechTreeClearDropsiteUnitIDsByResource(int resourceID)
public bool kbTechTreeAddDropsiteUnitIDByResource(int resourceID)
public int kbTechTreeGetDropsiteUnitIDByResource(int resourceID, int index)
public int kbTechTreeGetUnitIDByTrain(int unitTypeID, int civID)
public int kbTechTreeGetNumberTrainProtos(int unitTypeID)
public int kbTechTreeGetUnitIDByTrainIndex(int unitTypeID, int trainProtoIndex)
public int kbTechTreeGetNumberObtainProtos(int techID)
public int kbTechTreeGetUnitIDByObtainIndex(int techID, int obtainProtoIndex)