Asteroid
Derived Object created based on datafiles. Can be cast to and from an Object@.
Members
-
bool
alwaysVisible
— Whether the object can be seen from any distance.
-
float
sightRange
— Radius around which the object can see other objects.
-
vec3d
position
— Current position in space.
-
vec3d
velocity
— Current momentary velocity.
-
vec3d
acceleration
— Current acceleration vector.
-
quaterniond
rotation
— Rotation/facing expressed as a quaternion.
-
double
radius
— Radius of the object's bounding sphere and size of its visuals.
-
int
id
— Unique identifier referring to this object.
-
Region@
region
— Member created from datafiles.
Methods
-
Empire@
get_owner(
) const
-
string
get_name(
) const
-
bool
get_valid(
) const
-
bool
get_engaged(
) const
-
bool
get_named(
) const
-
bool
get_inCombat(
) const
-
bool
isFocus(
) const
-
void
focus(
)
-
bool
get_initialized(
) const
-
ObjectType
get_type(
) const
-
bool
get_selected(
) const
-
void
set_selected(
bool
value
)
-
bool
get_isPhysical(
) const
-
bool
get_visible(
) const
-
bool
get_known(
) const
-
ObjectGroup@
get_group(
)
-
const ObjectGroup@
get_group(
) const
-
Node@
getNode(
) const
-
vec3d
get_node_position(
)
-
quaterniond
get_node_rotation(
)
-
vec3d
get_strategicIconPosition(
)
-
uint
getAvailableCount(
)
-
uint
getAvailable(
uint
arg0
)
-
double
getAvailableCost(
uint
arg0
)
-
double
getAvailableCostFor(
uint
arg0
)
-
bool
canDevelop(
const Empire@
arg0
)
-
bool
canGainLimit(
const Empire@
arg0
)
-
DataList@
getNativeResources(
) const
-
DataList@
getAllResources(
) const
-
uint
get_nativeResourceCount(
) const
-
uint
get_nativeResourceType(
uint
index
) const
-
int
get_nativeResourceId(
uint
index
) const
-
uint
get_nativeResourceTotalLevel(
) const
-
bool
get_nativeResourceUsable(
uint
index
) const
-
bool
get_nativeResourceLocked(
uint
index
)
-
uint
getTradedResourceCount(
) const
-
Object@
get_nativeResourceDestination(
uint
index
) const
-
bool
get_exportEnabled(
) const
-
bool
get_importEnabled(
) const
-
uint
get_resourceModID(
) const
-
bool
isTerraforming(
) const
-
bool
get_hasAutoImports(
) const
-
uint
get_queuedImportCount(
)
-
uint
get_queuedImportType(
uint
i
)
-
Object@
get_queuedImportOrigin(
uint
i
)
-
uint
getImportsOfClass(
uint
cls
) const
-
float
get_resourceVanishRate(
) const
-
uint
get_primaryResourceType(
) const
-
uint
get_primaryResourceLevel(
) const
-
int
get_primaryResourceId(
) const
-
bool
get_primaryResourceUsable(
) const
-
bool
get_primaryResourceLocked(
) const
-
DataList@
getAvailableResources(
) const
-
DataList@
getImportedResources(
) const
-
DataList@
getResourceAmounts(
) const
-
bool
hasImportedResources(
) const
-
uint
get_availableResourceCount(
) const
-
uint
get_availableResourceType(
uint
index
) const
-
bool
get_availableResourceUsable(
uint
index
) const
-
uint
get_usableResourceCount(
) const
-
bool
isResourceAvailable(
uint
id
) const
-
uint
getAvailableResourceAmount(
uint
id
) const
-
Object@
get_availableResourceOrigin(
uint
index
) const
-
void
exportResource(
uint
index,
const Object@
to
)
-
void
exportResourceByID(
int
id,
const Object@
to
)
-
Component_Resources@
get_Resources(
)
-
Component_Orbit@
get_Orbit(
)
-
Object@
get_origin(
) const
Empire@
get_owner(
) const
Returns
Empire@
: The empire that owns this object.
string
get_name(
) const
Returns
string
: Name of the object.
bool
get_valid(
) const
Returns
bool
: Whether the object is valid and not a zombie. Zombies are objects that have already been destroyed but are awaiting disposal.
bool
isFocus(
) const
Returns
bool
: Whether the object is a focus object. Focus objects have higher priority for interpolation and syncing.
void
focus(
)
Mark the object as a focus object. Focus decays and should be set periodically on accessed objects.
Node@
getNode(
) const
Returns the node associated with the object. Asynchronous.
vec3d
get_node_position(
)
Returns
vec3d
: The absolute physical position of the object's graphics node this frame. Can be different from the object position due to graphics interpolation.
quaterniond
get_node_rotation(
)
Returns
quaterniond
: The absolute physical rotation of the object's graphics node this frame. Can be different from the object rotation due to graphics interpolation.
Component_Orbit@
get_Orbit(
)
Returns the component handle for this type of component.
Object@
get_origin(
) const
Member created from datafiles.