public class Player
extends Object
Modifier and Type | Method and Description |
---|---|
void |
kbForceContextPlayerID()
Important: use for debugging or manual scenario repair only!
|
int |
kbGetAge()
Returns the current age for the current player.
|
int |
kbGetAgeForPlayer(int id)
Returns the current age for the player specified.
|
int |
kbGetCiv()
Returns the civilization ID for the current player.
|
int |
kbGetCivForPlayer(int playerID)
Returns the civilization ID for the given player.
|
int |
kbGetCulture()
Returns the culture for the player.
|
int |
kbGetCultureForPlayer(int playerID)
Returns the culture for the given player.
|
int |
kbGetNumberMutualAllies()
Returns the number of mutual allies.
|
float |
kbGetPlayerHandicap(int playerID)
Returns the player's handicap multiplier (i.e.
|
int |
kbGetPlayerTeam(int playerID)
Returns the player's team number.
|
int |
kbGetPop()
Returns the current population for the player.
|
int |
kbGetPopCap()
Returns the current population cap for the player.
|
bool |
kbHasPlayerLost(int playerID)
Returns the player's lost status.
|
bool |
kbIsPlayerAlly(int playerID)
Returns true if the given player is an ally.
|
bool |
kbIsPlayerEnemy(int playerID)
Returns true if the given player is an enemy.
|
bool |
kbIsPlayerHuman(int playerID)
Returns true if the given player is a a human player.
|
bool |
kbIsPlayerMutualAlly(int playerID)
Returns true if the given player is a mutual ally.
|
bool |
kbIsPlayerNeutral(int playerID)
Returns true if the given player is a neutral player.
|
bool |
kbIsPlayerResigned(int playerID)
Returns the player's resigned status.
|
bool |
kbIsPlayerValid(int playerID)
Returns true if the given player is a valid player (i.e.
|
void |
kbSetPlayerHandicap(int playerID,
float handicap)
Sets the indicated player's handicap multiplier (i.e.
|
public int kbGetPop()
public int kbGetPopCap()
public void kbForceContextPlayerID()
xsSetContextPlayer(int playedID)
public int kbGetCiv()
public int kbGetCivForPlayer(int playerID)
public int kbGetAge()
public int kbGetAgeForPlayer(int id)
public int kbGetCulture()
public int kbGetCultureForPlayer(int playerID)
public bool kbIsPlayerResigned(int playerID)
public bool kbHasPlayerLost(int playerID)
public int kbGetPlayerTeam(int playerID)
public bool kbIsPlayerEnemy(int playerID)
public bool kbIsPlayerNeutral(int playerID)
public bool kbIsPlayerAlly(int playerID)
public bool kbIsPlayerMutualAlly(int playerID)
public int kbGetNumberMutualAllies()
public bool kbIsPlayerValid(int playerID)
public bool kbIsPlayerHuman(int playerID)
public float kbGetPlayerHandicap(int playerID)
public void kbSetPlayerHandicap(int playerID, float handicap)