void CCmpProjectileManager::AdvanceProjectile |
( |
Projectile & |
projectile, |
|
|
float |
dt |
|
) |
| const |
|
private |
static void CCmpProjectileManager::Deallocate |
( |
IComponent * |
cmp | ) |
|
|
inlinestatic |
virtual void CCmpProjectileManager::Deinit |
( |
| ) |
|
|
inlinevirtual |
virtual int CCmpProjectileManager::GetComponentTypeId |
( |
| ) |
const |
|
inlinevirtual |
static std::string CCmpProjectileManager::GetSchema |
( |
| ) |
|
|
inlinestatic |
virtual void CCmpProjectileManager::HandleMessage |
( |
const CMessage & |
msg, |
|
|
bool |
global |
|
) |
| |
|
inlinevirtual |
virtual void CCmpProjectileManager::Init |
( |
const CParamNode & |
paramNode | ) |
|
|
inlinevirtual |
void CCmpProjectileManager::Interpolate |
( |
float |
frameTime | ) |
|
|
private |
Launch a projectile from entity source
to point target
.
- Parameters
-
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) |
- Returns
- id of the created projectile
Implements ICmpProjectileManager.
void CCmpProjectileManager::RemoveProjectile |
( |
uint32_t |
id | ) |
|
|
virtual |
Removes a projectile, used when the projectile has hit a target.
- Parameters
-
id | of the projectile to remove |
Implements ICmpProjectileManager.
void CCmpProjectileManager::RenderSubmit |
( |
SceneCollector & |
collector, |
|
|
const CFrustum & |
frustum, |
|
|
bool |
culling |
|
) |
| const |
|
private |
virtual void CCmpProjectileManager::Serialize |
( |
ISerializer & |
serialize | ) |
|
|
inlinevirtual |
uint32_t CCmpProjectileManager::m_ActorSeed |
|
private |
uint32_t CCmpProjectileManager::m_NextId |
|
private |
std::vector<Projectile> CCmpProjectileManager::m_Projectiles |
|
private |
The documentation for this class was generated from the following file: