Pooled Bullet class to be used with PgeObjectPool.
Definition at line 273 of file WeaponManager.h.
|
| PooledBullet (PgeObjectPoolBase &parentPool, PR00FsUltimateRenderingEngine &gfx) |
| Most of the parameters required by Bullet ctor are NOT available when we create the pool, for those we are passing some default values.
|
|
| ~PooledBullet ()=default |
|
| PooledBullet (const PooledBullet &)=delete |
|
PooledBullet & | operator= (const PooledBullet &)=delete |
|
| PooledBullet (PooledBullet &&)=delete |
|
PooledBullet & | operator= (PooledBullet &&)=delete |
|
virtual void | onSetUsed () override |
| Gets invoked by setUsed().
|
|
| Bullet (const WeaponId &wpnId, PR00FsUltimateRenderingEngine &gfx, pge_network::PgeNetworkConnectionHandle connHandle, TPureFloat wpn_px, TPureFloat wpn_py, TPureFloat wpn_pz, TPureFloat wpn_ax, TPureFloat wpn_ay, TPureFloat wpn_az, bool visible, TPureFloat sx, TPureFloat sy, TPureFloat sz, TPureFloat speed, TPureFloat gravity, TPureFloat drag, TPureBool fragile, TPureFloat fDistMax, const ParticleType &particleType, int nDamageAp, int nDamageHp, TPureFloat fDamageAreaSize, const DamageAreaEffect &eDamageAreaEffect, TPureFloat fDamageAreaPulse) |
| Ctor to be used by PGE server instance.
|
|
| Bullet (const WeaponId &wpnId, PR00FsUltimateRenderingEngine &gfx, TPureFloat wpn_px, TPureFloat wpn_py, TPureFloat wpn_pz, TPureFloat wpn_ax, TPureFloat wpn_ay, TPureFloat wpn_az, bool visible, TPureFloat sx, TPureFloat sy, TPureFloat sz, TPureFloat speed, TPureFloat gravity, TPureFloat drag, const ParticleType &particleType, int nDamageHp, const TPureFloat &fDamageAreaSize, const DamageAreaEffect &eDamageAreaEffect, const TPureFloat &fDamageAreaPulse) |
| Ctor to be used by PGE client instance.
|
|
virtual | ~Bullet () |
| User is expected to explicitly call Bullet::destroyReferenceObject() after they freed up all Bullet instances.
|
|
| Bullet (const Bullet &)=delete |
|
Bullet & | operator= (const Bullet &)=delete |
|
| Bullet (Bullet &&)=delete |
|
Bullet & | operator= (Bullet &&)=delete |
|
CConsole & | getConsole () const |
| Returns access to console preset with logger module name as this class.
|
|
BulletId | getId () const |
|
const WeaponId & | getWeaponId () const |
|
pge_network::PgeNetworkConnectionHandle | getOwner () const |
|
const PurePosUpTarget & | getPut () const |
|
TPureFloat | getSpeed () const |
|
TPureFloat | getGravity () const |
|
TPureFloat | getDrag () const |
|
TPureBool | isFragile () const |
|
const ParticleType & | getParticleType () const |
|
int & | getParticleEmitPerNthPhysicsIterationCntr () |
|
const int & | getParticleEmitPerNthPhysicsIterationCntr () const |
|
int & | getParticlesEmittedTotal () |
|
const int & | getParticlesEmittedTotal () const |
|
TPureFloat | getTravelDistanceMax () const |
|
TPureFloat | getTravelledDistance () const |
|
int | getDamageAp () const |
| Maximum damage to Player AP this bullet can cause.
|
|
int | getDamageHp () const |
| Maximum damage to Player HP this bullet can cause.
|
|
TPureFloat | getAreaDamageSize () const |
|
const DamageAreaEffect & | getAreaDamageEffect () const |
|
TPureFloat | getAreaDamagePulse () const |
|
bool & | isCreateSentToClients () |
|
void | init (const WeaponId &wpnId, PR00FsUltimateRenderingEngine &gfx, pge_network::PgeNetworkConnectionHandle connHandle, TPureFloat wpn_px, TPureFloat wpn_py, TPureFloat wpn_pz, TPureFloat wpn_ax, TPureFloat wpn_ay, TPureFloat wpn_az, bool visible, TPureFloat sx, TPureFloat sy, TPureFloat sz, TPureFloat speed, TPureFloat gravity, TPureFloat drag, TPureBool fragile, TPureFloat fDistMax, const ParticleType &particleType, int nDamageAp, int nDamageHp, TPureFloat fDamageAreaSize, const DamageAreaEffect &eDamageAreaEffect, TPureFloat fDamageAreaPulse) |
| Init to be used by PGE server instance.
|
|
void | init (const BulletId &id, const WeaponId &wpnId, PR00FsUltimateRenderingEngine &gfx, TPureFloat wpn_px, TPureFloat wpn_py, TPureFloat wpn_pz, TPureFloat wpn_ax, TPureFloat wpn_ay, TPureFloat wpn_az, bool visible, TPureFloat sx, TPureFloat sy, TPureFloat sz, TPureFloat speed, TPureFloat gravity, TPureFloat drag, const ParticleType &particleType, int nDamageHp, TPureFloat fDamageAreaSize, const DamageAreaEffect &eDamageAreaEffect, TPureFloat fDamageAreaPulse) |
| Init to be used by PGE client instance.
|
|
void | Update (const unsigned int &nFactor) |
|
PureObject3D & | getObject3D () |
|
const PureObject3D & | getObject3D () const |
|
virtual | ~PgePooledObject ()=default |
|
| PgePooledObject (const PgePooledObject &)=default |
|
PgePooledObject & | operator= (const PgePooledObject &)=default |
|
| PgePooledObject (PgePooledObject &&)=default |
|
PgePooledObject & | operator= (PgePooledObject &&)=default |
|
PgeObjectPoolBase & | getParentPool () |
|
const PgeObjectPoolBase & | getParentPool () const |
|
const bool & | used () const |
|
const PgePooledObject * | next () const |
|
PgePooledObject * | next () |
|
void | remove () |
| Convenience function.
|
|