#include <WeaponGiveScore.h>

Public Member Functions | |
| WeaponGiveScore () | |
| virtual | ~WeaponGiveScore () |
| 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 (WeaponGiveScore, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| int | score_ |
Definition at line 26 of file WeaponGiveScore.h.
| WeaponGiveScore::WeaponGiveScore | ( | ) |
Definition at line 33 of file WeaponGiveScore.cpp.
| WeaponGiveScore::~WeaponGiveScore | ( | ) | [virtual] |
Definition at line 38 of file WeaponGiveScore.cpp.
| bool WeaponGiveScore::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 43 of file WeaponGiveScore.cpp.
References XMLNode::getNamedChild(), Weapon::parseXML(), and score_.
| void WeaponGiveScore::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 52 of file WeaponGiveScore.cpp.
References ActionController::addAction(), and ScorchedContext::getActionController().
| void WeaponGiveScore::weaponCallback | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| unsigned int | userData | |||
| ) | [virtual] |
Implements WeaponCallback.
Definition at line 60 of file WeaponGiveScore.cpp.
References TankTeamScore::addScore(), S3D::formatStringBuffer(), WeaponFireContext::getPlayerId(), TankScore::getScore(), Tank::getScore(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), ScorchedContext::getTankTeamScore(), Target::getTargetName(), Tank::getTeam(), LANG_RESOURCE_2, score_, TankScore::setScore(), and ChannelManager::showText().
| WeaponGiveScore::REGISTER_ACCESSORY_HEADER | ( | WeaponGiveScore | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
int WeaponGiveScore::score_ [protected] |
1.5.3