public class Player
extends Object
This class provides a collection of RM commands concerning Players.
Modifier and Type | Method and Description |
---|---|
void |
rmAddPlayerResource(int playerID,
string resourceName,
float amount)
Adds to a player's resource amount.
|
int |
rmGetNumberPlayersOnTeam(int teamID)
Gets the number of players on the given team
|
int |
rmGetPlayerCiv(int playerID)
Gets the civilization of the specified player.
|
int |
rmGetPlayerCulture(int playerID)
Gets the culture of the specified player.
|
string |
rmGetPlayerName(int playerID)
Gets a player's nickname.
|
int |
rmGetPlayerTeam(int playerID)
Gets the team the specified player is on.
|
void |
rmMultiplyPlayerResource(int playerID,
string resourceName,
float factor)
Multiplies a player's resource amount by the given factor.
|
void |
rmPlacePlayer(int playerID,
float xFraction,
float zFraction)
Sets one player location.
|
void |
rmPlacePlayersCircular(float minFraction,
float maxFraction,
float angleVariation)
Makes a circle of player locations.
|
void |
rmPlacePlayersLine(float x1,
float z1,
float x2,
float z2,
float distVariation,
float spacingVariation)
Makes a line of player locations.
|
void |
rmPlacePlayersSquare(float dist,
float distVariation,
float spacingVariationfloat)
Makes a square of player locations.
|
void |
rmPlayerLocXFraction(int playerID)
Gets a player's start location x fraction.
|
void |
rmPlayerLocZFraction(int playerID)
Gets a player's start location z fraction.
|
void |
rmSetPlacementSection(float fromPercent,
float toPercent)
When placing players in a circle or square, this command allows you to skip part of the circle or square,
in essence removing a slice from the pie (maybe you want to fit an ocean in there like in Sea of Worms).
|
void |
rmSetPlacementTeam(int teamID)
Sets the team to place.
|
void |
rmSetPlayerArea(int playerID,
int areaID)
Sets a player's 'official' area.
|
void |
rmSetPlayerLocation(int playerID,
float xFraction,
float zFraction)
Manually sets a player's starting location.
|
void |
rmSetPlayerPlacementArea(float minX,
float minZ,
float maxX,
float maxZ)
Sets the area of the map to use for player placement.
|
void |
rmSetPlayerResource(int playerID,
string resourceName,
float amount)
Sets a player's resource amount.
|
void |
rmSetTeamArea(int teamID,
int areaID)
Sets a team's 'official' area.
|
void |
rmSetTeamSpacingModifier(float modifier)
Sets the team spacing modifier.
|
public void rmAddPlayerResource(int playerID, string resourceName, float amount)
resourceName
- public int rmGetNumberPlayersOnTeam(int teamID)
public int rmGetPlayerCiv(int playerID)
ArtificialIntelligence.cCivZeus
,
ArtificialIntelligence.cCivHades
,
ArtificialIntelligence.cCivPoseidon
,
ArtificialIntelligence.cCivIsis
,
ArtificialIntelligence.cCivRa
,
ArtificialIntelligence.cCivSet
,
ArtificialIntelligence.cCivLoki
,
ArtificialIntelligence.cCivThor
,
ArtificialIntelligence.cCivOdin
,
ArtificialIntelligence.cCivGaia
,
ArtificialIntelligence.cCivKronos
,
ArtificialIntelligence.cCivOuranos
,
ArtificialIntelligence.cCivGreek
,
ArtificialIntelligence.cCivNorse
,
ArtificialIntelligence.cCivEgyptian
,
ArtificialIntelligence.cCivAtlantean
,
ArtificialIntelligence.cCivRandom
,
ArtificialIntelligence.cCivNature
public int rmGetPlayerCulture(int playerID)
public string rmGetPlayerName(int playerID)
public int rmGetPlayerTeam(int playerID)
public void rmPlacePlayer(int playerID, float xFraction, float zFraction)
public void rmPlacePlayersCircular(float minFraction, float maxFraction, float angleVariation)
public void rmPlacePlayersLine(float x1, float z1, float x2, float z2, float distVariation, float spacingVariation)
public void rmPlacePlayersSquare(float dist, float distVariation, float spacingVariationfloat)
public void rmPlayerLocXFraction(int playerID)
public void rmPlayerLocZFraction(int playerID)
public void rmSetPlacementSection(float fromPercent, float toPercent)
public void rmSetPlacementTeam(int teamID)
public void rmSetPlayerArea(int playerID, int areaID)
public void rmSetPlayerLocation(int playerID, float xFraction, float zFraction)
public void rmSetPlayerPlacementArea(float minX, float minZ, float maxX, float maxZ)
public void rmSetPlayerResource(int playerID, string resourceName, float amount)
resourceName
- public void rmSetTeamArea(int teamID, int areaID)
public void rmSetTeamSpacingModifier(float modifier)
public void rmMultiplyPlayerResource(int playerID, string resourceName, float factor)
resourceName
-