#include <WeaponLaser.h>

Public Member Functions | |
| WeaponLaser () | |
| virtual | ~WeaponLaser () |
| virtual bool | parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode) |
| void | fireWeapon (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity) |
| REGISTER_ACCESSORY_HEADER (WeaponLaser, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| LaserParams | laserParams_ |
| NumberParser | minimumHurt_ |
| NumberParser | maximumHurt_ |
| NumberParser | minimumDistance_ |
| NumberParser | maximumDistance_ |
| NumberParser | hurtRadius_ |
| NumberParser | totalTime_ |
Definition at line 27 of file WeaponLaser.h.
| WeaponLaser::WeaponLaser | ( | ) |
Definition at line 28 of file WeaponLaser.cpp.
| WeaponLaser::~WeaponLaser | ( | ) | [virtual] |
Definition at line 32 of file WeaponLaser.cpp.
| bool WeaponLaser::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 36 of file WeaponLaser.cpp.
References XMLNode::getNamedChild(), hurtRadius_, laserParams_, maximumDistance_, maximumHurt_, minimumDistance_, minimumHurt_, LaserParams::parseXML(), Weapon::parseXML(), and totalTime_.
| void WeaponLaser::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 52 of file WeaponLaser.cpp.
References ActionController::addAction(), ScorchedContext::getActionController(), NumberParser::getValue(), hurtRadius_, laserParams_, maximumDistance_, maximumHurt_, minimumDistance_, minimumHurt_, LaserParams::setHurtRadius(), LaserParams::setMaximumDistance(), LaserParams::setMaximumHurt(), LaserParams::setMinimumDistance(), LaserParams::setMinimumHurt(), LaserParams::setTotalTime(), and totalTime_.
| WeaponLaser::REGISTER_ACCESSORY_HEADER | ( | WeaponLaser | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
LaserParams WeaponLaser::laserParams_ [protected] |
NumberParser WeaponLaser::minimumHurt_ [protected] |
NumberParser WeaponLaser::maximumHurt_ [protected] |
NumberParser WeaponLaser::minimumDistance_ [protected] |
NumberParser WeaponLaser::maximumDistance_ [protected] |
NumberParser WeaponLaser::hurtRadius_ [protected] |
NumberParser WeaponLaser::totalTime_ [protected] |
1.5.3