WeaponLightning Class Reference

#include <WeaponLightning.h>

Inheritance diagram for WeaponLightning:

Weapon AccessoryPart

List of all members.

Public Member Functions

 WeaponLightning ()
virtual ~WeaponLightning ()
virtual bool parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode)
fixed getConeLength ()
fixed getSegLength ()
fixed getSegVar ()
fixed getSize ()
fixed getSizeVar ()
fixed getMinSize ()
fixed getSplitProb ()
fixed getSplitVar ()
fixed getDeathProb ()
fixed getDerivAngle ()
fixed getAngleVar ()
fixed getTotalTime ()
fixed getSegHurt ()
fixed getSegHurtRadius ()
const char * getSound ()
const char * getTexture ()
void fireWeapon (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity)
 REGISTER_ACCESSORY_HEADER (WeaponLightning, AccessoryPart::AccessoryWeapon)

Protected Attributes

fixed coneLength_
fixed segLength_
fixed segVar_
fixed size_
fixed sizeVar_
fixed minSize_
fixed splitProb_
fixed splitVar_
fixed deathProb_
fixed derivAngle_
fixed angleVar_
fixed totalTime_
fixed segHurt_
fixed segHurtRadius_
std::string sound_
std::string texture_
NumberParser coneLengthExp_
NumberParser segLengthExp_
NumberParser segVarExp_
NumberParser sizeExp_
NumberParser sizeVarExp_
NumberParser minSizeExp_
NumberParser splitProbExp_
NumberParser splitVarExp_
NumberParser deathProbExp_
NumberParser derivAngleExp_
NumberParser angleVarExp_
NumberParser totalTimeExp_
NumberParser segHurtExp_
NumberParser segHurtRadiusExp_


Detailed Description

Definition at line 26 of file WeaponLightning.h.


Constructor & Destructor Documentation

WeaponLightning::WeaponLightning (  ) 

Definition at line 29 of file WeaponLightning.cpp.

WeaponLightning::~WeaponLightning (  )  [virtual]

Definition at line 33 of file WeaponLightning.cpp.


Member Function Documentation

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]

Definition at line 38 of file WeaponLightning.h.

References size_.

Referenced by Lightning::init().

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   
)


Member Data Documentation

fixed WeaponLightning::coneLength_ [protected]

Definition at line 59 of file WeaponLightning.h.

Referenced by fireWeapon(), and getConeLength().

fixed WeaponLightning::segLength_ [protected]

Definition at line 60 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSegLength().

fixed WeaponLightning::segVar_ [protected]

Definition at line 61 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSegVar().

fixed WeaponLightning::size_ [protected]

Definition at line 62 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSize().

fixed WeaponLightning::sizeVar_ [protected]

Definition at line 63 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSizeVar().

fixed WeaponLightning::minSize_ [protected]

Definition at line 64 of file WeaponLightning.h.

Referenced by fireWeapon(), and getMinSize().

fixed WeaponLightning::splitProb_ [protected]

Definition at line 65 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSplitProb().

fixed WeaponLightning::splitVar_ [protected]

Definition at line 66 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSplitVar().

fixed WeaponLightning::deathProb_ [protected]

Definition at line 67 of file WeaponLightning.h.

Referenced by fireWeapon(), and getDeathProb().

fixed WeaponLightning::derivAngle_ [protected]

Definition at line 68 of file WeaponLightning.h.

Referenced by fireWeapon(), and getDerivAngle().

fixed WeaponLightning::angleVar_ [protected]

Definition at line 69 of file WeaponLightning.h.

Referenced by fireWeapon(), and getAngleVar().

fixed WeaponLightning::totalTime_ [protected]

Definition at line 70 of file WeaponLightning.h.

Referenced by fireWeapon(), and getTotalTime().

fixed WeaponLightning::segHurt_ [protected]

Definition at line 71 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSegHurt().

fixed WeaponLightning::segHurtRadius_ [protected]

Definition at line 72 of file WeaponLightning.h.

Referenced by fireWeapon(), and getSegHurtRadius().

std::string WeaponLightning::sound_ [protected]

Definition at line 73 of file WeaponLightning.h.

Referenced by getSound(), and parseXML().

std::string WeaponLightning::texture_ [protected]

Definition at line 74 of file WeaponLightning.h.

Referenced by getTexture(), and parseXML().

NumberParser WeaponLightning::coneLengthExp_ [protected]

Definition at line 75 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::segLengthExp_ [protected]

Definition at line 76 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::segVarExp_ [protected]

Definition at line 77 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::sizeExp_ [protected]

Definition at line 78 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::sizeVarExp_ [protected]

Definition at line 79 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::minSizeExp_ [protected]

Definition at line 80 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::splitProbExp_ [protected]

Definition at line 81 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::splitVarExp_ [protected]

Definition at line 82 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::deathProbExp_ [protected]

Definition at line 83 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::derivAngleExp_ [protected]

Definition at line 84 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::angleVarExp_ [protected]

Definition at line 85 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::totalTimeExp_ [protected]

Definition at line 86 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::segHurtExp_ [protected]

Definition at line 87 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().

NumberParser WeaponLightning::segHurtRadiusExp_ [protected]

Definition at line 88 of file WeaponLightning.h.

Referenced by fireWeapon(), and parseXML().


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