#include <Shield.h>

Definition at line 27 of file Shield.h.
| enum Shield::ShieldType |
| Shield::Shield | ( | ) |
Definition at line 26 of file Shield.cpp.
| Shield::~Shield | ( | ) | [virtual] |
Definition at line 32 of file Shield.cpp.
| bool Shield::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Implements AccessoryPart.
Reimplemented in ShieldRound, ShieldRoundMag, ShieldRoundReflective, ShieldSquare, and ShieldSquareReflective.
Definition at line 36 of file Shield.cpp.
References S3D::checkDataFile(), collisionSound_, color_, S3D::formatStringBuffer(), getCollisionSound(), XMLNode::getNamedChild(), laserProof_, movementProof_, penetration_, power_, removePower_, XMLNode::returnError(), ShieldLaserProofNone, ShieldLaserProofStop, ShieldLaserProofTotal, ShieldMovementAll, ShieldMovementNone, ShieldMovementSame, ShieldMovementTeam1, ShieldMovementTeam2, ShieldMovementTeam3, ShieldMovementTeam4, and LangStringUtil::strcmp().
Referenced by ShieldSquare::parseXML(), and ShieldRound::parseXML().
| const char * Shield::getCollisionSound | ( | ) |
Definition at line 93 of file Shield.cpp.
References collisionSound_.
Referenced by parseXML(), and ShieldHit::simulate().
| fixed Shield::getHitRemovePower | ( | ) | [inline] |
Definition at line 63 of file Shield.h.
References removePower_.
Referenced by PhysicsParticleActionObject::shotShieldHit(), and ShieldHit::simulate().
| fixed Shield::getHitPenetration | ( | ) | [inline] |
Definition at line 64 of file Shield.h.
References penetration_.
Referenced by TankDamage::calculateDamage().
| fixed Shield::getPower | ( | ) | [inline] |
Definition at line 65 of file Shield.h.
References power_.
Referenced by TargetRendererImplTank::drawLife(), generateTargetTip(), and TargetShield::setCurrentShield().
| Vector& Shield::getColor | ( | ) | [inline] |
Definition at line 66 of file Shield.h.
References color_.
Referenced by TargetRendererImpl::drawShield().
| ShieldLaserProofType Shield::getLaserProof | ( | ) | [inline] |
Definition at line 67 of file Shield.h.
References laserProof_.
Referenced by Laser::simulate(), and TankAICurrentMoveWeapons::TankAICurrentMoveWeapons().
| ShieldMovementType Shield::getMovementProof | ( | ) | [inline] |
Definition at line 68 of file Shield.h.
References movementProof_.
Referenced by MovementMap::movementProof().
| virtual fixed Shield::getBoundingSize | ( | ) | [pure virtual] |
Implemented in ShieldRound, and ShieldSquare.
Referenced by TankAICurrentMove::lowestHighest(), and TargetShield::setCurrentShield().
| virtual bool Shield::inShield | ( | FixedVector & | offset | ) | [pure virtual] |
Implemented in ShieldRound, and ShieldSquare.
Referenced by WeaponRoller::fireWeapon(), TargetSpace::getCollision(), PhysicsParticleObject::getShieldCollision(), MovementMap::inShield(), and Laser::simulate().
| virtual bool Shield::tankInShield | ( | FixedVector & | offset | ) | [pure virtual] |
Implemented in ShieldRound, and ShieldSquare.
Referenced by PhysicsParticleObject::getShieldCollision().
| virtual ShieldType Shield::getShieldType | ( | ) | [pure virtual] |
Implemented in ShieldRound, ShieldRoundMag, ShieldRoundReflective, ShieldSquare, and ShieldSquareReflective.
Referenced by PhysicsParticleActionObject::bounceShieldHit(), PhysicsParticleObject::checkShotCollision(), TargetRendererImpl::drawShield(), PhysicsParticleObject::getShieldCollision(), TankAICurrentMove::makeProjectileShot(), TankAICurrentMove::makeSniperShot(), and PhysicsParticleActionObject::shotShieldHit().
| virtual bool Shield::getRound | ( | ) | [pure virtual] |
Implemented in ShieldRound, and ShieldSquare.
Referenced by TargetRendererImpl::drawShield(), and TargetSpace::getSquares().
std::string Shield::collisionSound_ [protected] |
Vector Shield::color_ [protected] |
fixed Shield::removePower_ [protected] |
fixed Shield::penetration_ [protected] |
fixed Shield::power_ [protected] |
ShieldLaserProofType Shield::laserProof_ [protected] |
ShieldMovementType Shield::movementProof_ [protected] |
1.5.3