NapalmParams Class Reference

#include <NapalmParams.h>

List of all members.

Public Member Functions

 NapalmParams ()
 ~NapalmParams ()
bool parseXML (XMLNode *accessoryNode)
void parseLUA (lua_State *L, int position)
void setNapalmTime (fixed value)
void setNapalmHeight (fixed value)
void setStepTime (fixed value)
void setHurtStepTime (fixed value)
void setHurtPerSecond (fixed value)
fixed getNapalmTime ()
fixed getNapalmHeight ()
fixed getStepTime ()
fixed getHurtStepTime ()
fixed getHurtPerSecond ()
fixed getGroundScorchPer ()
int getEffectRadius ()
int getNumberParticles ()
bool getNoSmoke ()
bool getNoObjectDamage ()
bool getAllowUnderWater ()
bool getLuminance ()
bool getSingleFlow ()
const char * getNapalmTexture ()
const char * getDeformTexture ()

Protected Attributes

fixed napalmTime_
fixed napalmHeight_
fixed stepTime_
fixed hurtStepTime_
fixed hurtPerSecond_
fixed groundScorchPer_
int effectRadius_
int numberParticles_
bool noSmoke_
bool noObjectDamage_
bool allowUnderWater_
bool singleFlow_
bool luminance_
std::string napalmTexture_
std::string deformTexture_


Detailed Description

Definition at line 29 of file NapalmParams.h.


Constructor & Destructor Documentation

NapalmParams::NapalmParams (  ) 

Definition at line 25 of file NapalmParams.cpp.

NapalmParams::~NapalmParams (  ) 

Definition at line 44 of file NapalmParams.cpp.


Member Function Documentation

bool NapalmParams::parseXML ( XMLNode accessoryNode  ) 

Definition at line 48 of file NapalmParams.cpp.

References allowUnderWater_, S3D::checkDataFile(), deformTexture_, effectRadius_, getDeformTexture(), XMLNode::getNamedChild(), groundScorchPer_, luminance_, napalmTexture_, noObjectDamage_, noSmoke_, numberParticles_, and singleFlow_.

Referenced by WeaponNapalm::parseXML().

void NapalmParams::parseLUA ( lua_State L,
int  position 
)

Definition at line 83 of file NapalmParams.cpp.

References allowUnderWater_, deformTexture_, effectRadius_, LUAUtil::getBoolFromTable(), LUAUtil::getIntFromTable(), LUAUtil::getNumberFromTable(), LUAUtil::getStringFromTable(), groundScorchPer_, hurtPerSecond_, hurtStepTime_, LUA_TTABLE, luaL_checktype(), luminance_, napalmHeight_, napalmTexture_, napalmTime_, noObjectDamage_, noSmoke_, numberParticles_, singleFlow_, and stepTime_.

Referenced by s3d_napalm().

void NapalmParams::setNapalmTime ( fixed  value  )  [inline]

Definition at line 38 of file NapalmParams.h.

References napalmTime_.

Referenced by WeaponNapalm::addNapalm().

void NapalmParams::setNapalmHeight ( fixed  value  )  [inline]

Definition at line 39 of file NapalmParams.h.

References napalmHeight_.

Referenced by WeaponNapalm::addNapalm().

void NapalmParams::setStepTime ( fixed  value  )  [inline]

Definition at line 40 of file NapalmParams.h.

References stepTime_.

Referenced by WeaponNapalm::addNapalm().

void NapalmParams::setHurtStepTime ( fixed  value  )  [inline]

Definition at line 41 of file NapalmParams.h.

References hurtStepTime_.

Referenced by WeaponNapalm::addNapalm().

void NapalmParams::setHurtPerSecond ( fixed  value  )  [inline]

Definition at line 42 of file NapalmParams.h.

References hurtPerSecond_.

Referenced by WeaponNapalm::addNapalm().

fixed NapalmParams::getNapalmTime (  )  [inline]

Definition at line 44 of file NapalmParams.h.

References napalmTime_.

Referenced by Napalm::simulateAddEdge().

fixed NapalmParams::getNapalmHeight (  )  [inline]

Definition at line 45 of file NapalmParams.h.

References napalmHeight_.

Referenced by Napalm::simulateAddEdge(), and Napalm::simulateRmStep().

fixed NapalmParams::getStepTime (  )  [inline]

Definition at line 46 of file NapalmParams.h.

References stepTime_.

Referenced by Napalm::simulate().

fixed NapalmParams::getHurtStepTime (  )  [inline]

Definition at line 47 of file NapalmParams.h.

References hurtStepTime_.

Referenced by Napalm::simulate().

fixed NapalmParams::getHurtPerSecond (  )  [inline]

Definition at line 48 of file NapalmParams.h.

References hurtPerSecond_.

Referenced by Napalm::simulateDamage().

fixed NapalmParams::getGroundScorchPer (  )  [inline]

Definition at line 49 of file NapalmParams.h.

References groundScorchPer_.

int NapalmParams::getEffectRadius (  )  [inline]

Definition at line 50 of file NapalmParams.h.

References effectRadius_.

Referenced by Napalm::simulateDamage().

int NapalmParams::getNumberParticles (  )  [inline]

Definition at line 51 of file NapalmParams.h.

References numberParticles_.

Referenced by Napalm::simulate().

bool NapalmParams::getNoSmoke (  )  [inline]

Definition at line 52 of file NapalmParams.h.

References noSmoke_.

Referenced by Napalm::simulate().

bool NapalmParams::getNoObjectDamage (  )  [inline]

Definition at line 53 of file NapalmParams.h.

References noObjectDamage_.

Referenced by Napalm::simulateDamage().

bool NapalmParams::getAllowUnderWater (  )  [inline]

Definition at line 54 of file NapalmParams.h.

References allowUnderWater_.

Referenced by Napalm::simulateAddEdge().

bool NapalmParams::getLuminance (  )  [inline]

Definition at line 55 of file NapalmParams.h.

References luminance_.

Referenced by Napalm::simulateAddEdge().

bool NapalmParams::getSingleFlow (  )  [inline]

Definition at line 56 of file NapalmParams.h.

References singleFlow_.

Referenced by Napalm::simulateAddEdge().

const char* NapalmParams::getNapalmTexture (  )  [inline]

Definition at line 57 of file NapalmParams.h.

References napalmTexture_.

Referenced by Napalm::init().

const char* NapalmParams::getDeformTexture (  )  [inline]

Definition at line 58 of file NapalmParams.h.

References deformTexture_.

Referenced by parseXML(), and Napalm::simulateAddEdge().


Member Data Documentation

fixed NapalmParams::napalmTime_ [protected]

Definition at line 61 of file NapalmParams.h.

Referenced by getNapalmTime(), parseLUA(), and setNapalmTime().

fixed NapalmParams::napalmHeight_ [protected]

Definition at line 62 of file NapalmParams.h.

Referenced by getNapalmHeight(), parseLUA(), and setNapalmHeight().

fixed NapalmParams::stepTime_ [protected]

Definition at line 63 of file NapalmParams.h.

Referenced by getStepTime(), parseLUA(), and setStepTime().

fixed NapalmParams::hurtStepTime_ [protected]

Definition at line 64 of file NapalmParams.h.

Referenced by getHurtStepTime(), parseLUA(), and setHurtStepTime().

fixed NapalmParams::hurtPerSecond_ [protected]

Definition at line 65 of file NapalmParams.h.

Referenced by getHurtPerSecond(), parseLUA(), and setHurtPerSecond().

fixed NapalmParams::groundScorchPer_ [protected]

Definition at line 66 of file NapalmParams.h.

Referenced by getGroundScorchPer(), parseLUA(), and parseXML().

int NapalmParams::effectRadius_ [protected]

Definition at line 67 of file NapalmParams.h.

Referenced by getEffectRadius(), parseLUA(), and parseXML().

int NapalmParams::numberParticles_ [protected]

Definition at line 68 of file NapalmParams.h.

Referenced by getNumberParticles(), parseLUA(), and parseXML().

bool NapalmParams::noSmoke_ [protected]

Definition at line 69 of file NapalmParams.h.

Referenced by getNoSmoke(), parseLUA(), and parseXML().

bool NapalmParams::noObjectDamage_ [protected]

Definition at line 70 of file NapalmParams.h.

Referenced by getNoObjectDamage(), parseLUA(), and parseXML().

bool NapalmParams::allowUnderWater_ [protected]

Definition at line 71 of file NapalmParams.h.

Referenced by getAllowUnderWater(), parseLUA(), and parseXML().

bool NapalmParams::singleFlow_ [protected]

Definition at line 72 of file NapalmParams.h.

Referenced by getSingleFlow(), parseLUA(), and parseXML().

bool NapalmParams::luminance_ [protected]

Definition at line 73 of file NapalmParams.h.

Referenced by getLuminance(), parseLUA(), and parseXML().

std::string NapalmParams::napalmTexture_ [protected]

Definition at line 74 of file NapalmParams.h.

Referenced by getNapalmTexture(), parseLUA(), and parseXML().

std::string NapalmParams::deformTexture_ [protected]

Definition at line 75 of file NapalmParams.h.

Referenced by getDeformTexture(), parseLUA(), and parseXML().


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