#include <ShieldHit.h>

Public Member Functions | |
| ShieldHit (unsigned int playerId, FixedVector &position, fixed hitPercentage) | |
| virtual | ~ShieldHit () |
| virtual void | draw () |
| virtual void | init () |
| virtual void | simulate (fixed frameTime, bool &remove) |
Protected Attributes | |
| bool | firstTime_ |
| fixed | totalTime_ |
| unsigned int | playerId_ |
| fixed | hitPercentage_ |
| FixedVector | position_ |
Definition at line 26 of file ShieldHit.h.
| ShieldHit::ShieldHit | ( | unsigned int | playerId, | |
| FixedVector & | position, | |||
| fixed | hitPercentage | |||
| ) |
Definition at line 34 of file ShieldHit.cpp.
| ShieldHit::~ShieldHit | ( | ) | [virtual] |
Definition at line 45 of file ShieldHit.cpp.
| void ShieldHit::draw | ( | ) | [virtual] |
Reimplemented from Action.
Definition at line 97 of file ShieldHit.cpp.
References FixedVector::asVector(), Action::context_, GLLenseFlare::draw(), ScorchedContext::getServerMode(), GLLenseFlare::instance(), and position_.
| void ShieldHit::init | ( | ) | [virtual] |
| void ShieldHit::simulate | ( | fixed | frameTime, | |
| bool & | remove | |||
| ) | [virtual] |
Reimplemented from Action.
Definition at line 53 of file ShieldHit.cpp.
References FixedVector::asVector(), Action::context_, VirtualSoundPriority::eAction, Sound::fetchOrCreateBuffer(), firstTime_, S3D::formatStringBuffer(), Accessory::getAction(), Shield::getCollisionSound(), TargetShield::getCurrentShield(), S3D::getDataFile(), Shield::getHitRemovePower(), Target::getRenderer(), ScorchedContext::getServerMode(), Target::getShield(), TargetShield::getShieldPower(), TargetContainer::getTargetById(), ScorchedContext::getTargetContainer(), hitPercentage_, Sound::instance(), SoundUtils::playAbsoluteSound(), playerId_, position_, TargetShield::setShieldPower(), TargetRenderer::shieldHit(), Action::simulate(), and totalTime_.
bool ShieldHit::firstTime_ [protected] |
fixed ShieldHit::totalTime_ [protected] |
unsigned int ShieldHit::playerId_ [protected] |
fixed ShieldHit::hitPercentage_ [protected] |
FixedVector ShieldHit::position_ [protected] |
1.5.3