LaserParams Class Reference

#include <LaserParams.h>

List of all members.

Public Member Functions

 LaserParams ()
 ~LaserParams ()
bool parseXML (XMLNode *accessoryNode)
void parseLUA (lua_State *L, int position)
void setMinimumHurt (fixed value)
void setMaximumHurt (fixed value)
void setMinimumDistance (fixed value)
void setMaximumDistance (fixed value)
void setHurtRadius (fixed value)
void setTotalTime (fixed value)
fixed getMinimumHurt ()
fixed getMaximumHurt ()
fixed getMinimumDistance ()
fixed getMaximumDistance ()
fixed getHurtRadius ()
fixed getTotalTime ()
bool getHurtFirer ()
VectorgetColor ()

Protected Attributes

fixed minimumHurt_
fixed maximumHurt_
fixed minimumDistance_
fixed maximumDistance_
fixed hurtRadius_
fixed totalTime_
bool hurtFirer_
Vector color_


Detailed Description

Definition at line 30 of file LaserParams.h.


Constructor & Destructor Documentation

LaserParams::LaserParams (  ) 

Definition at line 25 of file LaserParams.cpp.

LaserParams::~LaserParams (  ) 

Definition at line 35 of file LaserParams.cpp.


Member Function Documentation

bool LaserParams::parseXML ( XMLNode accessoryNode  ) 

Definition at line 39 of file LaserParams.cpp.

References color_, XMLNode::getNamedChild(), and hurtFirer_.

Referenced by WeaponLaser::parseXML().

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

Definition at line 47 of file LaserParams.cpp.

References LUAUtil::getBoolFromTable(), LUAUtil::getNumberFromTable(), hurtFirer_, hurtRadius_, LUA_TTABLE, luaL_checktype(), maximumDistance_, maximumHurt_, minimumDistance_, minimumHurt_, and totalTime_.

Referenced by s3d_laser().

void LaserParams::setMinimumHurt ( fixed  value  )  [inline]

Definition at line 39 of file LaserParams.h.

References minimumHurt_.

Referenced by WeaponLaser::fireWeapon().

void LaserParams::setMaximumHurt ( fixed  value  )  [inline]

Definition at line 40 of file LaserParams.h.

References maximumHurt_.

Referenced by WeaponLaser::fireWeapon().

void LaserParams::setMinimumDistance ( fixed  value  )  [inline]

Definition at line 41 of file LaserParams.h.

References minimumDistance_.

Referenced by WeaponLaser::fireWeapon().

void LaserParams::setMaximumDistance ( fixed  value  )  [inline]

Definition at line 42 of file LaserParams.h.

References maximumDistance_.

Referenced by WeaponLaser::fireWeapon().

void LaserParams::setHurtRadius ( fixed  value  )  [inline]

Definition at line 43 of file LaserParams.h.

References hurtRadius_.

Referenced by WeaponLaser::fireWeapon().

void LaserParams::setTotalTime ( fixed  value  )  [inline]

Definition at line 44 of file LaserParams.h.

References totalTime_.

Referenced by WeaponLaser::fireWeapon().

fixed LaserParams::getMinimumHurt (  )  [inline]

Definition at line 46 of file LaserParams.h.

References minimumHurt_.

Referenced by Laser::init().

fixed LaserParams::getMaximumHurt (  )  [inline]

Definition at line 47 of file LaserParams.h.

References maximumHurt_.

Referenced by Laser::init().

fixed LaserParams::getMinimumDistance (  )  [inline]

Definition at line 48 of file LaserParams.h.

References minimumDistance_.

Referenced by Laser::init().

fixed LaserParams::getMaximumDistance (  )  [inline]

Definition at line 49 of file LaserParams.h.

References maximumDistance_.

Referenced by Laser::init().

fixed LaserParams::getHurtRadius (  )  [inline]

Definition at line 50 of file LaserParams.h.

References hurtRadius_.

Referenced by Laser::simulate().

fixed LaserParams::getTotalTime (  )  [inline]

Definition at line 51 of file LaserParams.h.

References totalTime_.

Referenced by Laser::simulate().

bool LaserParams::getHurtFirer (  )  [inline]

Definition at line 52 of file LaserParams.h.

References hurtFirer_.

Referenced by Laser::simulate().

Vector& LaserParams::getColor (  )  [inline]

Definition at line 53 of file LaserParams.h.

References color_.

Referenced by Laser::draw().


Member Data Documentation

fixed LaserParams::minimumHurt_ [protected]

Definition at line 56 of file LaserParams.h.

Referenced by getMinimumHurt(), parseLUA(), and setMinimumHurt().

fixed LaserParams::maximumHurt_ [protected]

Definition at line 56 of file LaserParams.h.

Referenced by getMaximumHurt(), parseLUA(), and setMaximumHurt().

fixed LaserParams::minimumDistance_ [protected]

Definition at line 57 of file LaserParams.h.

Referenced by getMinimumDistance(), parseLUA(), and setMinimumDistance().

fixed LaserParams::maximumDistance_ [protected]

Definition at line 57 of file LaserParams.h.

Referenced by getMaximumDistance(), parseLUA(), and setMaximumDistance().

fixed LaserParams::hurtRadius_ [protected]

Definition at line 58 of file LaserParams.h.

Referenced by getHurtRadius(), parseLUA(), and setHurtRadius().

fixed LaserParams::totalTime_ [protected]

Definition at line 59 of file LaserParams.h.

Referenced by getTotalTime(), parseLUA(), and setTotalTime().

bool LaserParams::hurtFirer_ [protected]

Definition at line 60 of file LaserParams.h.

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

Vector LaserParams::color_ [protected]

Definition at line 61 of file LaserParams.h.

Referenced by getColor(), and parseXML().


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