#include <shotgun.h>
Inheritance diagram for ShotgunBuckshot:
Public Member Functions | |
ShotgunBuckshot (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher) | |
bool | IsOverlapping (const PhysicalObj *obj) const |
Protected Member Functions | |
void | RandomizeShoot (double &angle, double &strength) |
Definition at line 31 of file shotgun.h.
ShotgunBuckshot::ShotgunBuckshot | ( | ExplosiveWeaponConfig & | cfg, | |
WeaponLauncher * | p_launcher | |||
) |
Definition at line 39 of file shotgun.cpp.
00040 : 00041 WeaponBullet("buckshot", cfg, p_launcher) 00042 { 00043 cfg.explosion_range = SHOTGUN_EXPLOSION_RANGE; 00044 }
bool ShotgunBuckshot::IsOverlapping | ( | const PhysicalObj * | obj | ) | const [virtual] |
Reimplemented from PhysicalObj.
Definition at line 52 of file shotgun.cpp.
00053 { 00054 if(GetName() == obj->GetName()) return true; 00055 return m_overlapping_object == obj; 00056 }
Here is the call graph for this function:
void ShotgunBuckshot::RandomizeShoot | ( | double & | angle, | |
double & | strength | |||
) | [protected, virtual] |
Reimplemented from WeaponProjectile.
Definition at line 46 of file shotgun.cpp.
00047 { 00048 angle += M_PI * randomSync.GetDouble(-SHOTGUN_RANDOM_ANGLE,SHOTGUN_RANDOM_ANGLE); 00049 strength += randomSync.GetDouble(-SHOTGUN_RANDOM_STRENGTH,SHOTGUN_RANDOM_STRENGTH); 00050 }
Here is the call graph for this function: