SubMachineGunBullet Class Reference

#include <submachine_gun.h>

Inheritance diagram for SubMachineGunBullet:

Inheritance graph
[legend]
Collaboration diagram for SubMachineGunBullet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SubMachineGunBullet (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher)

Protected Member Functions

void ShootSound ()
void RandomizeShoot (double &angle, double &strength)

Detailed Description

Definition at line 32 of file submachine_gun.h.


Constructor & Destructor Documentation

SubMachineGunBullet::SubMachineGunBullet ( ExplosiveWeaponConfig cfg,
WeaponLauncher p_launcher 
)

Definition at line 41 of file submachine_gun.cpp.

00042                                                                       :
00043   WeaponBullet("m16_bullet", cfg, p_launcher)
00044 {
00045 }


Member Function Documentation

void SubMachineGunBullet::RandomizeShoot ( double &  angle,
double &  strength 
) [protected, virtual]

Reimplemented from WeaponProjectile.

Definition at line 47 of file submachine_gun.cpp.

00048 {
00049   angle += M_PI * randomSync.GetDouble(-SUBMACHINE_RANDOM_ANGLE,SUBMACHINE_RANDOM_ANGLE);
00050 }

Here is the call graph for this function:

void SubMachineGunBullet::ShootSound (  )  [protected, virtual]

Reimplemented from WeaponProjectile.

Definition at line 52 of file submachine_gun.cpp.

00053 {
00054   jukebox.Play("share", "weapon/m16");
00055 }

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:18:56 2007 for Wormux by  doxygen 1.4.7