#include <WeaponGiveLife.h>

Public Member Functions | |
| WeaponGiveLife () | |
| virtual | ~WeaponGiveLife () |
| virtual bool | parseXML (AccessoryCreateContext &context, XMLNode *accessoryNode) |
| void | fireWeapon (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity) |
| virtual void | weaponCallback (ScorchedContext &context, WeaponFireContext &weaponContext, FixedVector &position, FixedVector &velocity, unsigned int userData) |
| REGISTER_ACCESSORY_HEADER (WeaponGiveLife, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| NumberParser | life_ |
| bool | exceedMax_ |
Definition at line 26 of file WeaponGiveLife.h.
| WeaponGiveLife::WeaponGiveLife | ( | ) |
Definition at line 32 of file WeaponGiveLife.cpp.
| WeaponGiveLife::~WeaponGiveLife | ( | ) | [virtual] |
Definition at line 37 of file WeaponGiveLife.cpp.
| bool WeaponGiveLife::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 42 of file WeaponGiveLife.cpp.
References exceedMax_, XMLNode::getNamedChild(), life_, and Weapon::parseXML().
| void WeaponGiveLife::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 52 of file WeaponGiveLife.cpp.
References ActionController::addAction(), and ScorchedContext::getActionController().
| void WeaponGiveLife::weaponCallback | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| unsigned int | userData | |||
| ) | [virtual] |
Implements WeaponCallback.
Definition at line 60 of file WeaponGiveLife.cpp.
References fixed::asFloat(), exceedMax_, S3D::formatStringBuffer(), TargetLife::getLife(), Target::getLife(), TargetLife::getMaxLife(), WeaponFireContext::getPlayerId(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), Target::getTargetName(), NumberParser::getValue(), LANG_RESOURCE_2, life_, MIN, TargetLife::setLife(), TargetLife::setMaxLife(), and ChannelManager::showText().
| WeaponGiveLife::REGISTER_ACCESSORY_HEADER | ( | WeaponGiveLife | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
NumberParser WeaponGiveLife::life_ [protected] |
bool WeaponGiveLife::exceedMax_ [protected] |
1.5.3