#include <Weapon.h>
Public Member Functions | |
| WeaponFireContext (unsigned int playerId, unsigned int data) | |
| WeaponFireContext (WeaponFireContext &other) | |
| virtual | ~WeaponFireContext () |
| unsigned int | getPlayerId () |
| void | setPlayerId (unsigned int playerId) |
| unsigned int | getData () |
| int | getIncLabelCount (unsigned int label) |
Protected Attributes | |
| unsigned int | playerId_ |
| unsigned int | data_ |
| std::map< unsigned int, int > | labelCount_ |
Private Member Functions | |
| WeaponFireContext & | operator= (WeaponFireContext &other) |
Definition at line 30 of file Weapon.h.
| WeaponFireContext::WeaponFireContext | ( | unsigned int | playerId, | |
| unsigned int | data | |||
| ) |
Definition at line 24 of file Weapon.cpp.
| WeaponFireContext::WeaponFireContext | ( | WeaponFireContext & | other | ) |
Definition at line 30 of file Weapon.cpp.
| WeaponFireContext::~WeaponFireContext | ( | ) | [virtual] |
Definition at line 37 of file Weapon.cpp.
| unsigned int WeaponFireContext::getPlayerId | ( | ) | [inline] |
Definition at line 37 of file Weapon.h.
References playerId_.
Referenced by TankDamage::calculateDamage(), TankDamage::calculateDeath(), Lightning::damageTargets(), ShotProjectile::doCollision(), WeaponTankVelocity::fireWeapon(), WeaponTankPosition::fireWeapon(), WeaponSelectPosition::fireWeapon(), WeaponScript::fireWeapon(), WeaponAnimation::fireWeapon(), Teleport::getActionDetails(), TankMovement::getActionDetails(), ShotProjectile::getPlayerId(), ShotBounce::getPlayerId(), Napalm::getPlayerId(), Teleport::init(), TankMovement::init(), ShotProjectile::init(), ShotBounce::init(), Explosion::init(), TankDamage::logDeath(), Teleport::simulate(), Laser::simulate(), TankMovement::simulationMove(), WeaponTypeAction::weaponCallback(), WeaponTeamAction::weaponCallback(), WeaponGiveWin::weaponCallback(), WeaponGiveScore::weaponCallback(), WeaponGivePower::weaponCallback(), WeaponGiveMoney::weaponCallback(), WeaponGiveLives::weaponCallback(), WeaponGiveLife::weaponCallback(), and WeaponGiveAccessory::weaponCallback().
| void WeaponFireContext::setPlayerId | ( | unsigned int | playerId | ) | [inline] |
Definition at line 38 of file Weapon.h.
References playerId_.
Referenced by TankFalling::collision().
| unsigned int WeaponFireContext::getData | ( | ) | [inline] |
| int WeaponFireContext::getIncLabelCount | ( | unsigned int | label | ) |
Definition at line 41 of file Weapon.cpp.
References labelCount_.
Referenced by WeaponGotoLabel::fireWeapon().
| WeaponFireContext& WeaponFireContext::operator= | ( | WeaponFireContext & | other | ) | [private] |
unsigned int WeaponFireContext::playerId_ [protected] |
unsigned int WeaponFireContext::data_ [protected] |
std::map<unsigned int, int> WeaponFireContext::labelCount_ [protected] |
1.5.3