public abstract class RandomMap
extends Object
Modifier and Type | Field and Description |
---|---|
int |
cMapSize
0 = normal size
1 = large size
|
int |
cNumberNonGaiaPlayers
Total number of players, mother nature excluded.
|
int |
cNumberPlayers
Total number of players, mother nature included.
|
int |
cNumberTeams
Total number of teams.
|
Modifier and Type | Method and Description |
---|---|
int |
rmClassID(string name)
Gets class ID for given class name.
|
int |
rmDefineClass(string className)
Define a class with the given name.
|
void |
rmDefineConstant(string name,
int value)
Define a constant with given name and value.
|
void |
rmEchoError(string echoString,
int level)
Echoes an error string to the debugger output, can not be seen in AoT.
|
void |
rmEchoInfo(string echoString,
int level)
Echoes an info string to the debugger output, can not be seen in AoT.
|
void |
rmEchoWarning(string echoString,
int level)
Echoes a warning string to the debugger output, can not be seen in AoT.
|
float |
rmGetSeaLevel()
Gets the sea level for the map.
|
void |
rmRandFloat(float min,
float max)
Returns a random float between min and max.
|
void |
rmRandInt(int min,
int max)
Returns a random integer between min and max.
|
void |
rmSetGaiaCiv(long civ)
Sets Gaia's civilization.
|
void |
rmSetLightingSet(string name)
Sets a lighting set.
|
void |
rmSetMapSize(int x,
int z)
Sets the size of the map.
|
void |
rmSetSeaLevel()
Sets the sea level for the map.
|
void |
rmSetSeaType(string name)
Sets the sea type for the map.
|
void |
rmSetStatusText(string status,
float progress)
Sets the friendly cool loading screen text
|
void |
rmTerrainInitialize(string baseTerrain,
float height)
Initializes the terrain to the base type and height.
|
void |
sqrt(float x)
Returns the square root of x.
|
public final int cMapSize
public final int cNumberNonGaiaPlayers
public final int cNumberPlayers
public final int cNumberTeams
public void sqrt(float x)
public int rmClassID(string name)
public int rmDefineClass(string className)
public void rmDefineConstant(string name, int value)
public void rmEchoError(string echoString, int level)
public void rmEchoInfo(string echoString, int level)
public void rmEchoWarning(string echoString, int level)
public float rmGetSeaLevel()
public void rmRandFloat(float min, float max)
public void rmRandInt(int min, int max)
public void rmSetGaiaCiv(long civ)
public void rmSetLightingSet(string name)
public void rmSetMapSize(int x, int z)
public void rmSetSeaLevel()
public void rmSetSeaType(string name)
public void rmSetStatusText(string status, float progress)
public void rmTerrainInitialize(string baseTerrain, float height)