Grenade Class Reference

#include <grenade.h>

Inheritance diagram for Grenade:

Inheritance graph
[legend]
Collaboration diagram for Grenade:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Grenade (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher)
void Refresh ()

Protected Member Functions

void SignalOutOfMap ()

Detailed Description

Definition at line 34 of file grenade.h.


Constructor & Destructor Documentation

Grenade::Grenade ( ExplosiveWeaponConfig cfg,
WeaponLauncher p_launcher 
)

Definition at line 37 of file grenade.cpp.

00038                                               :
00039   WeaponProjectile ("grenade", cfg, p_launcher)
00040 {
00041   m_rebound_sound = "weapon/grenade_bounce";
00042   explode_with_collision = false;
00043 }


Member Function Documentation

void Grenade::Refresh (  )  [virtual]

Reimplemented from WeaponProjectile.

Definition at line 47 of file grenade.cpp.

00048 {
00049   WeaponProjectile::Refresh();
00050   image->SetRotation_rad(GetSpeedAngle());
00051 }

Here is the call graph for this function:

void Grenade::SignalOutOfMap (  )  [protected, virtual]

Reimplemented from WeaponProjectile.

Definition at line 55 of file grenade.cpp.

00056 {
00057   GameMessages::GetInstance()->Add (_("The grenade left the battlefield before exploding"));
00058   WeaponProjectile::SignalOutOfMap();
00059 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:50:49 2007 for Wormux by  doxygen 1.4.7