Dynamite Class Reference

#include <dynamite.h>

Inheritance diagram for Dynamite:

Inheritance graph
[legend]
Collaboration diagram for Dynamite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Dynamite ()

Protected Member Functions

bool p_Shoot ()
WeaponProjectileGetProjectileInstance ()

Detailed Description

Definition at line 54 of file dynamite.h.


Constructor & Destructor Documentation

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:


Member Function Documentation

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:


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