ShotgunBuckshot Class Reference

#include <shotgun.h>

Inheritance diagram for ShotgunBuckshot:

Inheritance graph
[legend]
Collaboration diagram for ShotgunBuckshot:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShotgunBuckshot (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher)
bool IsOverlapping (const PhysicalObj *obj) const

Protected Member Functions

void RandomizeShoot (double &angle, double &strength)

Detailed Description

Definition at line 31 of file shotgun.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 14:15:25 2007 for Wormux by  doxygen 1.4.7