Cluster Class Reference

#include <cluster_bomb.h>

Inheritance diagram for Cluster:

Inheritance graph
[legend]
Collaboration diagram for Cluster:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Cluster (ClusterBombConfig &cfg, WeaponLauncher *p_launcher)
void Refresh ()
void Shoot (int n_x, int n_y)

Protected Member Functions

void SignalOutOfMap ()
void DoExplosion ()

Detailed Description

Definition at line 35 of file cluster_bomb.h.


Constructor & Destructor Documentation

Cluster::Cluster ( ClusterBombConfig cfg,
WeaponLauncher p_launcher 
)

Definition at line 37 of file cluster_bomb.cpp.

00038                                               :
00039   WeaponProjectile ("cluster", cfg, p_launcher)
00040 {
00041   explode_colliding_character = true;
00042 }


Member Function Documentation

void Cluster::DoExplosion (  )  [protected, virtual]

Reimplemented from WeaponProjectile.

Definition at line 62 of file cluster_bomb.cpp.

00063 {
00064   ApplyExplosion (GetPosition(), cfg, "weapon/explosion", false, ParticleEngine::LittleESmoke);
00065 }

Here is the call graph for this function:

void Cluster::Refresh (  )  [virtual]

Reimplemented from WeaponProjectile.

Definition at line 51 of file cluster_bomb.cpp.

00052 {
00053   image->SetRotation_rad(GetSpeedAngle());
00054 }

Here is the call graph for this function:

void Cluster::Shoot ( int  n_x,
int  n_y 
)

Definition at line 44 of file cluster_bomb.cpp.

00045 {
00046   camera.FollowObject(this, true, false);
00047   ResetConstants();
00048   SetXY( Point2i(x, y) );
00049 }

Here is the call graph for this function:

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

Reimplemented from WeaponProjectile.

Definition at line 56 of file cluster_bomb.cpp.

00057 {
00058   GameMessages::GetInstance()->Add (_("The rocket has left the battlefield..."));
00059   WeaponProjectile::SignalOutOfMap();
00060 }

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:42:03 2007 for Wormux by  doxygen 1.4.7