PolecatFart Class Reference

#include <polecat_fart.h>

Inheritance diagram for PolecatFart:

Inheritance graph
[legend]
Collaboration diagram for PolecatFart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PolecatFart ()
 PolecatFart (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher)

Protected Member Functions

void SignalObjectCollision (PhysicalObj *obj)

Private Attributes

bool is_active

Detailed Description

Definition at line 26 of file polecat_fart.h.


Constructor & Destructor Documentation

PolecatFart::PolecatFart (  ) 

Definition at line 27 of file polecat_fart.cpp.

00027                          :
00028   Particle("polecat_fart_particle")
00029 {
00030   m_initial_time_to_live = 10;
00031   m_left_time_to_live = m_initial_time_to_live;
00032   m_time_between_scale = 100;
00033   SetCollisionModel(false, true, false);
00034   is_active = true;
00035 
00036   image = ParticleEngine::GetSprite(POLECAT_FART_spr);
00037   image->Scale(1.0,1.0);
00038   SetSize( Point2i(10, 10) );
00039 }

Here is the call graph for this function:

PolecatFart::PolecatFart ( ExplosiveWeaponConfig cfg,
WeaponLauncher p_launcher 
)

Definition at line 39 of file polecat.cpp.

00040                                               :
00041   WeaponProjectile("polecat_fart", cfg, p_launcher)
00042 {
00043   explode_with_collision = false;
00044 }


Member Function Documentation

void PolecatFart::SignalObjectCollision ( PhysicalObj obj  )  [protected, virtual]

Reimplemented from WeaponProjectile.

Definition at line 41 of file polecat_fart.cpp.

00042 {
00043   if (!is_active) return;
00044   Character * tmp = (Character *)obj;
00045   tmp->SetEnergyDelta(-10);
00046   tmp->SetDiseaseDamage(5, 3);
00047   is_active = false;
00048 }

Here is the call graph for this function:


Member Data Documentation

bool PolecatFart::is_active [private]

Definition at line 29 of file polecat_fart.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 14:11:10 2007 for Wormux by  doxygen 1.4.7