WeaponFireContext Class Reference

#include <Weapon.h>

List of all members.

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

WeaponFireContextoperator= (WeaponFireContext &other)


Detailed Description

Definition at line 30 of file Weapon.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 39 of file Weapon.h.

References data_.

Referenced by TankDamage::logDeath().

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]


Member Data Documentation

unsigned int WeaponFireContext::playerId_ [protected]

Definition at line 43 of file Weapon.h.

Referenced by getPlayerId(), and setPlayerId().

unsigned int WeaponFireContext::data_ [protected]

Definition at line 44 of file Weapon.h.

Referenced by getData().

std::map<unsigned int, int> WeaponFireContext::labelCount_ [protected]

Definition at line 45 of file Weapon.h.

Referenced by getIncLabelCount().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:08 2009 for Scorched3D by  doxygen 1.5.3