BounceBall Class Reference

#include <bounce_ball.h>

Inheritance diagram for BounceBall:

Inheritance graph
[legend]
Collaboration diagram for BounceBall:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BounceBall (ExplosiveWeaponConfig &cfg, WeaponLauncher *p_launcher)
void Refresh ()

Protected Member Functions

void SignalOutOfMap ()

Detailed Description

Definition at line 33 of file bounce_ball.h.


Constructor & Destructor Documentation

BounceBall::BounceBall ( ExplosiveWeaponConfig cfg,
WeaponLauncher p_launcher 
)

Definition at line 38 of file bounce_ball.cpp.

00039                                                     :
00040   WeaponProjectile ("bounce_ball", cfg, p_launcher)
00041 {
00042   m_rebound_sound = "weapon/grenade_bounce";
00043   explode_colliding_character = true;
00044   explode_with_collision = false;
00045 }


Member Function Documentation

void BounceBall::Refresh (  )  [virtual]

Reimplemented from WeaponProjectile.

Definition at line 49 of file bounce_ball.cpp.

00050 {
00051   WeaponProjectile::Refresh();
00052   // rotation of ball image...
00053   image->SetRotation_rad(GetSpeedAngle());
00054 }

Here is the call graph for this function:

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

Reimplemented from WeaponProjectile.

Definition at line 59 of file bounce_ball.cpp.

00060 {
00061   GameMessages::GetInstance()->Add (_("The ball left the battlefield before exploding"));
00062   WeaponProjectile::SignalOutOfMap();
00063 }

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:37:23 2007 for Wormux by  doxygen 1.4.7