#include <WeaponGiveMoney.h>

Public Member Functions | |
| WeaponGiveMoney () | |
| virtual | ~WeaponGiveMoney () |
| 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 (WeaponGiveMoney, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| int | money_ |
Definition at line 26 of file WeaponGiveMoney.h.
| WeaponGiveMoney::WeaponGiveMoney | ( | ) |
Definition at line 32 of file WeaponGiveMoney.cpp.
| WeaponGiveMoney::~WeaponGiveMoney | ( | ) | [virtual] |
Definition at line 37 of file WeaponGiveMoney.cpp.
| bool WeaponGiveMoney::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 42 of file WeaponGiveMoney.cpp.
References XMLNode::getNamedChild(), money_, and Weapon::parseXML().
| void WeaponGiveMoney::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 51 of file WeaponGiveMoney.cpp.
References ActionController::addAction(), and ScorchedContext::getActionController().
| void WeaponGiveMoney::weaponCallback | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| unsigned int | userData | |||
| ) | [virtual] |
Implements WeaponCallback.
Definition at line 59 of file WeaponGiveMoney.cpp.
References S3D::formatStringBuffer(), TankScore::getMoney(), WeaponFireContext::getPlayerId(), Tank::getScore(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), Target::getTargetName(), LANG_RESOURCE_2, money_, TankScore::setMoney(), and ChannelManager::showText().
| WeaponGiveMoney::REGISTER_ACCESSORY_HEADER | ( | WeaponGiveMoney | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
int WeaponGiveMoney::money_ [protected] |
1.5.3