Simulator::cProjectile class

Derived classes

class cArtilleryProjectile
class cCulturalProjectile
class cDefaultAoEArea
class cDefaultBeamProjectile
class cDefaultToolProjectile
class cFlakProjectile
class cICBM
class cResourceProjectile
Projectile used in civilization stage to capture spice geysers. Might be used for other things too.
class cSpaceDefenseMissile

Public static variables

static const uint32_t TYPE

Constructors, destructors, conversion operators

~cProjectile() virtual

Public functions

auto Cast(uint32_t type) -> void* pure virtual
auto Release() -> int pure virtual
auto AddRef() -> int pure virtual
auto GetLocomotiveObject() -> cLocomotiveObject* pure virtual
Returns a reference to the locomotive object of this projectile (so just returns this as a cLocomotiveObject).
auto Update() -> bool pure virtual
Called every frame by the CombatSimulator.
auto GetOwnerCombatant() -> cCombatant* virtual
auto GetProjectileScale() -> float virtual
auto SetProjectileScale(float) -> void virtual
auto PreventsPlanetExit() -> bool virtual

Public variables

Vector3 mTargetOffset
bool projectile_field_10

Function documentation

bool Simulator::cProjectile::Update() pure virtual

Called every frame by the CombatSimulator.

Must return true if the projectile instance is still alive, or false if it has finished and must be destroyed.