#include <WeaponLightning.h>

Definition at line 26 of file WeaponLightning.h.
| WeaponLightning::WeaponLightning | ( | ) |
Definition at line 29 of file WeaponLightning.cpp.
| WeaponLightning::~WeaponLightning | ( | ) | [virtual] |
Definition at line 33 of file WeaponLightning.cpp.
| bool WeaponLightning::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 37 of file WeaponLightning.cpp.
References angleVarExp_, S3D::checkDataFile(), coneLengthExp_, deathProbExp_, derivAngleExp_, XMLNode::getNamedChild(), getSound(), minSizeExp_, Weapon::parseXML(), segHurtExp_, segHurtRadiusExp_, segLengthExp_, segVarExp_, sizeExp_, sizeVarExp_, sound_, splitProbExp_, splitVarExp_, texture_, and totalTimeExp_.
| fixed WeaponLightning::getConeLength | ( | ) | [inline] |
Definition at line 35 of file WeaponLightning.h.
References coneLength_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getSegLength | ( | ) | [inline] |
Definition at line 36 of file WeaponLightning.h.
References segLength_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getSegVar | ( | ) | [inline] |
Definition at line 37 of file WeaponLightning.h.
References segVar_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getSize | ( | ) | [inline] |
| fixed WeaponLightning::getSizeVar | ( | ) | [inline] |
Definition at line 39 of file WeaponLightning.h.
References sizeVar_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getMinSize | ( | ) | [inline] |
Definition at line 40 of file WeaponLightning.h.
References minSize_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getSplitProb | ( | ) | [inline] |
Definition at line 41 of file WeaponLightning.h.
References splitProb_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getSplitVar | ( | ) | [inline] |
Definition at line 42 of file WeaponLightning.h.
References splitVar_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getDeathProb | ( | ) | [inline] |
Definition at line 43 of file WeaponLightning.h.
References deathProb_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getDerivAngle | ( | ) | [inline] |
Definition at line 44 of file WeaponLightning.h.
References derivAngle_.
Referenced by Lightning::dispaceDirection().
| fixed WeaponLightning::getAngleVar | ( | ) | [inline] |
Definition at line 45 of file WeaponLightning.h.
References angleVar_.
Referenced by Lightning::generateLightning().
| fixed WeaponLightning::getTotalTime | ( | ) | [inline] |
Definition at line 46 of file WeaponLightning.h.
References totalTime_.
Referenced by Lightning::draw(), and Lightning::simulate().
| fixed WeaponLightning::getSegHurt | ( | ) | [inline] |
Definition at line 47 of file WeaponLightning.h.
References segHurt_.
Referenced by Lightning::damageTargets().
| fixed WeaponLightning::getSegHurtRadius | ( | ) | [inline] |
Definition at line 48 of file WeaponLightning.h.
References segHurtRadius_.
Referenced by Lightning::damageTargets().
| const char* WeaponLightning::getSound | ( | ) | [inline] |
Definition at line 49 of file WeaponLightning.h.
References sound_.
Referenced by parseXML(), and Lightning::simulate().
| const char* WeaponLightning::getTexture | ( | ) | [inline] |
Definition at line 50 of file WeaponLightning.h.
References texture_.
Referenced by Lightning::draw().
| void WeaponLightning::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 63 of file WeaponLightning.cpp.
References ActionController::addAction(), angleVar_, angleVarExp_, coneLength_, coneLengthExp_, deathProb_, deathProbExp_, derivAngle_, derivAngleExp_, ScorchedContext::getActionController(), NumberParser::getValue(), minSize_, minSizeExp_, segHurt_, segHurtExp_, segHurtRadius_, segHurtRadiusExp_, segLength_, segLengthExp_, segVar_, segVarExp_, size_, sizeExp_, sizeVar_, sizeVarExp_, splitProb_, splitProbExp_, splitVar_, splitVarExp_, totalTime_, and totalTimeExp_.
| WeaponLightning::REGISTER_ACCESSORY_HEADER | ( | WeaponLightning | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
fixed WeaponLightning::coneLength_ [protected] |
fixed WeaponLightning::segLength_ [protected] |
fixed WeaponLightning::segVar_ [protected] |
fixed WeaponLightning::size_ [protected] |
fixed WeaponLightning::sizeVar_ [protected] |
fixed WeaponLightning::minSize_ [protected] |
fixed WeaponLightning::splitProb_ [protected] |
fixed WeaponLightning::splitVar_ [protected] |
fixed WeaponLightning::deathProb_ [protected] |
fixed WeaponLightning::derivAngle_ [protected] |
fixed WeaponLightning::angleVar_ [protected] |
fixed WeaponLightning::totalTime_ [protected] |
fixed WeaponLightning::segHurt_ [protected] |
fixed WeaponLightning::segHurtRadius_ [protected] |
Definition at line 72 of file WeaponLightning.h.
Referenced by fireWeapon(), and getSegHurtRadius().
std::string WeaponLightning::sound_ [protected] |
std::string WeaponLightning::texture_ [protected] |
NumberParser WeaponLightning::coneLengthExp_ [protected] |
NumberParser WeaponLightning::segLengthExp_ [protected] |
NumberParser WeaponLightning::segVarExp_ [protected] |
NumberParser WeaponLightning::sizeExp_ [protected] |
NumberParser WeaponLightning::sizeVarExp_ [protected] |
NumberParser WeaponLightning::minSizeExp_ [protected] |
NumberParser WeaponLightning::splitProbExp_ [protected] |
NumberParser WeaponLightning::splitVarExp_ [protected] |
NumberParser WeaponLightning::deathProbExp_ [protected] |
NumberParser WeaponLightning::derivAngleExp_ [protected] |
NumberParser WeaponLightning::angleVarExp_ [protected] |
NumberParser WeaponLightning::totalTimeExp_ [protected] |
NumberParser WeaponLightning::segHurtExp_ [protected] |
NumberParser WeaponLightning::segHurtRadiusExp_ [protected] |
1.5.3