![]() |
PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
|
Definition at line 19 of file Explosion.h.
#include <Explosion.h>
Public Types | |
| typedef uint32_t | ExplosionId |
Public Member Functions | |
| Explosion (PR00FsUltimateRenderingEngine &gfx, const pge_network::PgeNetworkConnectionHandle &connHandle, const PureVector &pos, const TPureFloat &fDamageAreaSize) | |
| Ctor to be used by PGE server instance: bullet id will be assigned within the ctor. | |
| Explosion (PR00FsUltimateRenderingEngine &gfx, const ExplosionId &id, const pge_network::PgeNetworkConnectionHandle &connHandle, const PureVector &pos, const TPureFloat &fDamageAreaSize) | |
| Ctor to be used by PGE client instance: bullet id as received from server. | |
| Explosion (const Explosion &other) | |
| Explosion & | operator= (const Explosion &other) |
| virtual | ~Explosion () |
| CConsole & | getConsole () const |
| Returns access to console preset with logger module name as this class. | |
| ExplosionId | getId () const |
| pge_network::PgeNetworkConnectionHandle | getOwner () const |
| bool & | isCreateSentToClients () |
| void | update (const unsigned int &nFactor) |
| PureObject3D & | getPrimaryObject3D () |
| const PureObject3D & | getPrimaryObject3D () const |
| PureObject3D & | getSecondaryObject3D () |
| const PureObject3D & | getSecondaryObject3D () const |
| const float & | getDamageAreaSize () const |
| float | getDamageAtDistance (const float &fDistance, const Bullet::DamageAreaEffect &eDamageAreaEffect, const int &nDamage) const |
| bool | shouldBeDeleted () const |
Static Public Member Functions | |
| static const char * | getLoggerModuleName () |
| Returns the logger module name of this class. | |
| static ExplosionId | getGlobalExplosionId () |
| static void | resetGlobalExplosionId () |
| static bool | initExplosionsReference (PGE &pge) |
| static void | destroyExplosionsReference () |
Private Attributes | |
| ExplosionId | m_id |
| Unique explosion id for identifying. | |
| PR00FsUltimateRenderingEngine & | m_gfx |
| pge_network::PgeNetworkConnectionHandle | m_connHandle |
| Owner (caused by) of this explosion. | |
| TPureFloat | m_fDamageAreaSize |
| Originating bullet's fDamageAreaSize. | |
| PureObject3D * | m_objPrimary |
| Associated Primary Pure object to be rendered. | |
| PureObject3D * | m_objSecondary |
| Associated Secondary Pure object to be rendered. | |
| TPureFloat | m_fScalingPrimary |
| To be increased during animation. | |
| TPureFloat | m_fScalingSecondary |
| To be increased during animation. | |
| bool | m_bCreateSentToClients |
| Server should send update to clients about creation of new explosions. | |
Static Private Attributes | |
| static ExplosionId | m_globalExplosionId = 0 |
| Next unique explosion id for identifying. | |
| static PureObject3D * | m_pReferenceObjExplosion = nullptr |
| uint32_t proofps_dd::Explosion::ExplosionId |
Definition at line 24 of file Explosion.h.
| proofps_dd::Explosion::Explosion | ( | PR00FsUltimateRenderingEngine & | gfx, |
| const pge_network::PgeNetworkConnectionHandle & | connHandle, | ||
| const PureVector & | pos, | ||
| const TPureFloat & | fDamageAreaSize ) |
Ctor to be used by PGE server instance: bullet id will be assigned within the ctor.
Definition at line 73 of file Explosion.cpp.
| proofps_dd::Explosion::Explosion | ( | PR00FsUltimateRenderingEngine & | gfx, |
| const ExplosionId & | id, | ||
| const pge_network::PgeNetworkConnectionHandle & | connHandle, | ||
| const PureVector & | pos, | ||
| const TPureFloat & | fDamageAreaSize ) |
Ctor to be used by PGE client instance: bullet id as received from server.
Definition at line 101 of file Explosion.cpp.
| proofps_dd::Explosion::Explosion | ( | const Explosion & | other | ) |
Definition at line 127 of file Explosion.cpp.
|
virtual |
Definition at line 200 of file Explosion.cpp.
|
static |
Definition at line 61 of file Explosion.cpp.
| CConsole & proofps_dd::Explosion::getConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Definition at line 212 of file Explosion.cpp.
| const float & proofps_dd::Explosion::getDamageAreaSize | ( | ) | const |
Definition at line 312 of file Explosion.cpp.
| float proofps_dd::Explosion::getDamageAtDistance | ( | const float & | fDistance, |
| const Bullet::DamageAreaEffect & | eDamageAreaEffect, | ||
| const int & | nDamage ) const |
Definition at line 317 of file Explosion.cpp.
|
static |
Definition at line 26 of file Explosion.cpp.
| proofps_dd::Explosion::ExplosionId proofps_dd::Explosion::getId | ( | ) | const |
Definition at line 217 of file Explosion.cpp.
|
static |
Returns the logger module name of this class.
Definition at line 21 of file Explosion.cpp.
| pge_network::PgeNetworkConnectionHandle proofps_dd::Explosion::getOwner | ( | ) | const |
Definition at line 222 of file Explosion.cpp.
| PureObject3D & proofps_dd::Explosion::getPrimaryObject3D | ( | ) |
Definition at line 292 of file Explosion.cpp.
| const PureObject3D & proofps_dd::Explosion::getPrimaryObject3D | ( | ) | const |
Definition at line 297 of file Explosion.cpp.
| PureObject3D & proofps_dd::Explosion::getSecondaryObject3D | ( | ) |
Definition at line 302 of file Explosion.cpp.
| const PureObject3D & proofps_dd::Explosion::getSecondaryObject3D | ( | ) | const |
Definition at line 307 of file Explosion.cpp.
|
static |
Definition at line 36 of file Explosion.cpp.
| bool & proofps_dd::Explosion::isCreateSentToClients | ( | ) |
Definition at line 227 of file Explosion.cpp.
| proofps_dd::Explosion & proofps_dd::Explosion::operator= | ( | const Explosion & | other | ) |
Definition at line 162 of file Explosion.cpp.
|
static |
Definition at line 31 of file Explosion.cpp.
| bool proofps_dd::Explosion::shouldBeDeleted | ( | ) | const |
Definition at line 335 of file Explosion.cpp.
| void proofps_dd::Explosion::update | ( | const unsigned int & | nFactor | ) |
Definition at line 232 of file Explosion.cpp.
|
private |
Server should send update to clients about creation of new explosions.
By default false.
Definition at line 96 of file Explosion.h.
|
private |
Owner (caused by) of this explosion.
Used by PGE server instance only.
Definition at line 89 of file Explosion.h.
|
private |
Originating bullet's fDamageAreaSize.
Used by PGE server and client instances.
Definition at line 90 of file Explosion.h.
|
private |
To be increased during animation.
Definition at line 94 of file Explosion.h.
|
private |
To be increased during animation.
Definition at line 95 of file Explosion.h.
|
private |
Definition at line 88 of file Explosion.h.
|
staticprivate |
Next unique explosion id for identifying.
Used by PGE server instance only.
Definition at line 84 of file Explosion.h.
|
private |
Unique explosion id for identifying.
Used by PGE server and client instances.
Definition at line 87 of file Explosion.h.
|
private |
Associated Primary Pure object to be rendered.
Used by PGE server and client instances. TODO: shared ptr.
Definition at line 92 of file Explosion.h.
|
private |
Associated Secondary Pure object to be rendered.
Used by PGE server and client instances. TODO: shared ptr.
Definition at line 93 of file Explosion.h.
|
staticprivate |
Definition at line 85 of file Explosion.h.