#include <dynamite.h>
Inheritance diagram for Dynamite:
Public Member Functions | |
Dynamite () | |
Protected Member Functions | |
bool | p_Shoot () |
WeaponProjectile * | GetProjectileInstance () |
Definition at line 54 of file dynamite.h.
Dynamite::Dynamite | ( | ) |
Definition at line 88 of file dynamite.cpp.
00088 : 00089 WeaponLauncher(WEAPON_DYNAMITE, "dynamite", new ExplosiveWeaponConfig(), VISIBLE_ONLY_WHEN_INACTIVE) 00090 { 00091 m_name = _("Dynamite"); 00092 ReloadLauncher(); 00093 }
Here is the call graph for this function:
WeaponProjectile * Dynamite::GetProjectileInstance | ( | ) | [protected, virtual] |
Implements WeaponLauncher.
Definition at line 95 of file dynamite.cpp.
00096 { 00097 return dynamic_cast<WeaponProjectile *> 00098 (new DynamiteStick(cfg(),dynamic_cast<WeaponLauncher *>(this))); 00099 }
Here is the call graph for this function:
bool Dynamite::p_Shoot | ( | ) | [protected, virtual] |
Reimplemented from WeaponLauncher.
Definition at line 102 of file dynamite.cpp.
00103 { 00104 projectile->Shoot(0); 00105 00106 // add the character speed 00107 if(ActiveCharacter().GetDirection() == 1) 00108 projectile->SetSpeed(3.0, -M_PI_4); 00109 else 00110 projectile->SetSpeed(3.0, -3.0 * M_PI_4); 00111 00112 return true; 00113 }
Here is the call graph for this function: