ShieldHit Class Reference

#include <ShieldHit.h>

Inheritance diagram for ShieldHit:

ActionReferenced Action

List of all members.

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_


Detailed Description

Definition at line 26 of file ShieldHit.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Implements Action.

Definition at line 49 of file ShieldHit.cpp.

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_.


Member Data Documentation

bool ShieldHit::firstTime_ [protected]

Definition at line 39 of file ShieldHit.h.

Referenced by simulate().

fixed ShieldHit::totalTime_ [protected]

Definition at line 40 of file ShieldHit.h.

Referenced by simulate().

unsigned int ShieldHit::playerId_ [protected]

Definition at line 41 of file ShieldHit.h.

Referenced by simulate().

fixed ShieldHit::hitPercentage_ [protected]

Definition at line 42 of file ShieldHit.h.

Referenced by simulate().

FixedVector ShieldHit::position_ [protected]

Definition at line 43 of file ShieldHit.h.

Referenced by draw(), and simulate().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:06 2009 for Scorched3D by  doxygen 1.5.3