#include <LaserParams.h>
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 () |
| Vector & | getColor () |
Protected Attributes | |
| fixed | minimumHurt_ |
| fixed | maximumHurt_ |
| fixed | minimumDistance_ |
| fixed | maximumDistance_ |
| fixed | hurtRadius_ |
| fixed | totalTime_ |
| bool | hurtFirer_ |
| Vector | color_ |
Definition at line 30 of file LaserParams.h.
| LaserParams::LaserParams | ( | ) |
Definition at line 25 of file LaserParams.cpp.
| LaserParams::~LaserParams | ( | ) |
Definition at line 35 of file LaserParams.cpp.
| 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] |
| fixed LaserParams::getMaximumHurt | ( | ) | [inline] |
| 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] |
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] |
1.5.3