#include <WeaponGiveWin.h>

Public Member Functions | |
| WeaponGiveWin () | |
| virtual | ~WeaponGiveWin () |
| 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 (WeaponGiveWin, AccessoryPart::AccessoryWeapon) | |
Protected Attributes | |
| std::string | objective_ |
| int | winningTeam_ |
Definition at line 26 of file WeaponGiveWin.h.
| WeaponGiveWin::WeaponGiveWin | ( | ) |
Definition at line 35 of file WeaponGiveWin.cpp.
| WeaponGiveWin::~WeaponGiveWin | ( | ) | [virtual] |
Definition at line 41 of file WeaponGiveWin.cpp.
| bool WeaponGiveWin::parseXML | ( | AccessoryCreateContext & | context, | |
| XMLNode * | accessoryNode | |||
| ) | [virtual] |
Reimplemented from Weapon.
Definition at line 46 of file WeaponGiveWin.cpp.
References XMLNode::getNamedChild(), objective_, Weapon::parseXML(), and winningTeam_.
| void WeaponGiveWin::fireWeapon | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity | |||
| ) | [virtual] |
Implements Weapon.
Definition at line 57 of file WeaponGiveWin.cpp.
References ActionController::addAction(), and ScorchedContext::getActionController().
| void WeaponGiveWin::weaponCallback | ( | ScorchedContext & | context, | |
| WeaponFireContext & | weaponContext, | |||
| FixedVector & | position, | |||
| FixedVector & | velocity, | |||
| unsigned int | userData | |||
| ) | [virtual] |
Implements WeaponCallback.
Definition at line 65 of file WeaponGiveWin.cpp.
References ScorchedContext::getOptionsGame(), WeaponFireContext::getPlayerId(), Tank::getScore(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), ScorchedContext::getTankTeamScore(), Target::getTargetName(), Tank::getTeam(), TankColorGenerator::getTeamName(), LANG_RESOURCE_2, objective_, TankScore::setWonGame(), TankTeamScore::setWonGame(), ChannelManager::showText(), and winningTeam_.
| WeaponGiveWin::REGISTER_ACCESSORY_HEADER | ( | WeaponGiveWin | , | |
| AccessoryPart::AccessoryWeapon | ||||
| ) |
std::string WeaponGiveWin::objective_ [protected] |
int WeaponGiveWin::winningTeam_ [protected] |
1.5.3