#include <grenade.h>
Inheritance diagram for Grenade:
Public Member Functions | |
Grenade (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher) | |
void | Refresh () |
Protected Member Functions | |
void | SignalOutOfMap () |
Definition at line 34 of file grenade.h.
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 }
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: