#include <WeaponRepeat.h>

Public Member Functions | |
| WeaponRepeat () | |
| virtual | ~WeaponRepeat () |
| virtual bool | parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode) |
| void | fireWeapon (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity) |
| REGISTER_ACCESSORY_HEADER (WeaponRepeat, AccessoryPart::AccessoryWeapon) | |
| virtual void | weaponCallback (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity, unsigned int userData) |
Protected Attributes | |
| Weapon * | repeatWeapon_ |
| NumberParser | delay_ |
| int | repeat_ |
Definition at line 26 of file WeaponRepeat.h.
| WeaponRepeat::WeaponRepeat | ( | ) |
Definition at line 27 of file WeaponRepeat.cpp.
| WeaponRepeat::~WeaponRepeat | ( | ) | [virtual] |
Definition at line 32 of file WeaponRepeat.cpp.
| bool WeaponRepeat::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 37 of file WeaponRepeat.cpp.
References AccessoryPart::AccessoryWeapon, delay_, AccessoryCreateContext::getAccessoryStore(), XMLNode::getNamedChild(), AccessoryPart::getType(), AccessoryPart::parent_, Weapon::parseXML(), repeat_, repeatWeapon_, and XMLNode::returnError().
| void WeaponRepeat::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 61 of file WeaponRepeat.cpp.
References delay_, Weapon::fireWeapon(), NumberParser::getValue(), repeat_, repeatWeapon_, and weaponCallback().
| WeaponRepeat::REGISTER_ACCESSORY_HEADER | ( | WeaponRepeat | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
| void WeaponRepeat::weaponCallback | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| unsigned int | userData | |||
| ) | [virtual] |
Implements WeaponCallback.
Definition at line 77 of file WeaponRepeat.cpp.
References ActionController::addAction(), delay_, Weapon::fireWeapon(), ScorchedContext::getActionController(), NumberParser::getValue(), and repeatWeapon_.
Referenced by fireWeapon().
Weapon* WeaponRepeat::repeatWeapon_ [protected] |
Definition at line 47 of file WeaponRepeat.h.
Referenced by fireWeapon(), parseXML(), and weaponCallback().
NumberParser WeaponRepeat::delay_ [protected] |
Definition at line 48 of file WeaponRepeat.h.
Referenced by fireWeapon(), parseXML(), and weaponCallback().
int WeaponRepeat::repeat_ [protected] |
1.5.3