!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
public class ObjectDef
extends Object
This class provides a collection of RM commands concerning Object Definitions.
Object Definitions are used to place objects on the map.
Modifier and Type | Method and Description |
---|---|
bool |
rmAddObjectDefConstraint(int defID,
int constraintID)
Add specified constraint to given object def.
|
void |
rmAddObjectDefItem(int defID,
string unitName,
int count,
float clusterDistance)
Add item to object definition.
|
bool |
rmAddObjectDefToClass(int objectDefID,
int classID)
Add given object def to specified class.
|
int |
rmCreateObjectDef(string name)
Creates an object definition.
|
int |
rmGetNumberUnitsPlaced(int objectDefID)
Returns the number of units placed by this objectDefID.
|
int |
rmGetUnitPlaced(int objectDefID,
int index)
Returns a unit ID that was placed by the objectDefID.
|
int |
rmGetUnitPlacedOfPlayer(int objectDefID,
int playerID)
Returns the unit ID of a given player that was placed by the objectDefID.
|
void |
rmPlaceObjectDefAtAreaLoc(int defID,
int playerID,
int areaID,
long placeCount)
Place object definition for the player at the given area's location.
|
void |
rmPlaceObjectDefAtLoc(int defID,
int playerID,
float xFraction,
float zFraction,
long placeCount)
Place object definition at specific location for given player.
|
void |
rmPlaceObjectDefAtRandomAreaOfClass(int defID,
int playerID,
int classID,
long placeCount)
Place object definition for the player at the location of a random area in the given class.
|
void |
rmPlaceObjectDefInArea(int defID,
int playerID,
int areaID,
long placeCount)
Place object definition for the player in the given area.
|
void |
rmPlaceObjectDefInRandomAreaOfClass(int defID,
int playerID,
int classID,
long placeCount)
Place object definition for the player in a random area in the given class.
|
void |
rmPlaceObjectDefPerPlayer(int defID,
bool playerOwned,
long placeCount)
Place object definition per player.
|
void |
rmSetIgnoreForceToGaia(bool val)
If off, some objects placed will automatically convert to Mother Nature.
|
void |
rmSetObjectDefMaxDistance(int defID,
float dist)
Set the maximum distance for the object definition (in meters).
|
void |
rmSetObjectDefMinDistance(int defID,
float dist)
Set the minimum distance for the object definition (in meters).
|
public void rmSetObjectDefMaxDistance(int defID, float dist)
public void rmSetObjectDefMinDistance(int defID, float dist)
public bool rmAddObjectDefConstraint(int defID, int constraintID)
public void rmAddObjectDefItem(int defID, string unitName, int count, float clusterDistance)
public bool rmAddObjectDefToClass(int objectDefID, int classID)
public int rmCreateObjectDef(string name)
public int rmGetNumberUnitsPlaced(int objectDefID)
public int rmGetUnitPlaced(int objectDefID, int index)
public int rmGetUnitPlacedOfPlayer(int objectDefID, int playerID)
public void rmPlaceObjectDefAtAreaLoc(int defID, int playerID, int areaID, long placeCount)
public void rmPlaceObjectDefAtLoc(int defID, int playerID, float xFraction, float zFraction, long placeCount)
public void rmPlaceObjectDefAtRandomAreaOfClass(int defID, int playerID, int classID, long placeCount)
public void rmPlaceObjectDefInArea(int defID, int playerID, int areaID, long placeCount)
public void rmPlaceObjectDefInRandomAreaOfClass(int defID, int playerID, int classID, long placeCount)
public void rmPlaceObjectDefPerPlayer(int defID, bool playerOwned, long placeCount)
public void rmSetIgnoreForceToGaia(bool val)