Pyrogenesis
13997
|
Classes | |
struct | Projectile |
Public Member Functions | |
virtual void | Init (const CParamNode ¶mNode) |
virtual void | Deinit () |
virtual void | Serialize (ISerializer &serialize) |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) |
virtual void | HandleMessage (const CMessage &msg, bool global) |
virtual uint32_t | LaunchProjectileAtPoint (entity_id_t source, CFixedVector3D target, fixed speed, fixed gravity) |
Launch a projectile from entity source to point target . More... | |
virtual void | RemoveProjectile (uint32_t) |
Removes a projectile, used when the projectile has hit a target. More... | |
![]() | |
virtual | ~IComponent () |
CEntityHandle | GetEntityHandle () const |
void | SetEntityHandle (CEntityHandle ent) |
entity_id_t | GetEntityId () const |
CEntityHandle | GetSystemEntity () const |
const CSimContext & | GetSimContext () const |
void | SetSimContext (const CSimContext &context) |
virtual JSClass * | GetJSClass () const |
virtual jsval | GetJSInstance () const |
Static Public Member Functions | |
static void | ClassInit (CComponentManager &componentManager) |
static IComponent * | Allocate (ScriptInterface &, jsval) |
static void | Deallocate (IComponent *cmp) |
static std::string | GetSchema () |
![]() | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Private Member Functions | |
uint32_t | LaunchProjectile (entity_id_t source, CFixedVector3D targetPoint, fixed speed, fixed gravity) |
void | AdvanceProjectile (Projectile &projectile, float dt) |
void | Interpolate (float frameTime) |
void | RenderSubmit (SceneCollector &collector, const CFrustum &frustum, bool culling) |
Private Attributes | |
std::vector< Projectile > | m_Projectiles |
uint32_t | m_ActorSeed |
uint32_t | m_NextId |
Definition at line 44 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 218 of file CCmpProjectileManager.cpp.
|
inlinestatic |
Definition at line 53 of file CCmpProjectileManager.cpp.
|
inlinestatic |
Definition at line 47 of file CCmpProjectileManager.cpp.
|
inlinestatic |
Definition at line 53 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 66 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 83 of file CCmpProjectileManager.cpp.
|
inlinestatic |
Definition at line 55 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Reimplemented from IComponent.
Definition at line 91 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 60 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 275 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 161 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Launch a projectile from entity source
to point target
.
source | source entity; the projectile will determined from the "projectile" prop in its actor |
target | target point |
speed | horizontal speed in m/s |
gravity | gravitational acceleration in m/s^2 (determines the height of the ballistic curve) |
Implements ICmpProjectileManager.
Definition at line 110 of file CCmpProjectileManager.cpp.
|
virtual |
Removes a projectile, used when the projectile has hit a target.
id | of the projectile to remove |
Implements ICmpProjectileManager.
Definition at line 303 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 319 of file CCmpProjectileManager.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 73 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 146 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 148 of file CCmpProjectileManager.cpp.
|
private |
Definition at line 144 of file CCmpProjectileManager.cpp.