#include <polecat_fart.h>
Inheritance diagram for PolecatFart:
Public Member Functions | |
PolecatFart () | |
PolecatFart (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher) | |
Protected Member Functions | |
void | SignalObjectCollision (PhysicalObj *obj) |
Private Attributes | |
bool | is_active |
Definition at line 26 of file polecat_fart.h.
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 }
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:
bool PolecatFart::is_active [private] |
Definition at line 29 of file polecat_fart.h.