SkipTurn Class Reference

#include <skip_turn.h>

Inheritance diagram for SkipTurn:

Inheritance graph
[legend]
Collaboration diagram for SkipTurn:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SkipTurn ()

Protected Member Functions

bool p_Shoot ()
void Refresh ()

Detailed Description

Definition at line 28 of file skip_turn.h.


Constructor & Destructor Documentation

SkipTurn::SkipTurn (  ) 

Definition at line 30 of file skip_turn.cpp.

00030                    : Weapon(WEAPON_SKIP_TURN, "skip_turn", new WeaponConfig())
00031 {
00032   m_name = _("Skip turn");
00033 }


Member Function Documentation

bool SkipTurn::p_Shoot (  )  [protected, virtual]

Implements Weapon.

Definition at line 37 of file skip_turn.cpp.

00038 {
00039 
00040   // Show message
00041   GameMessages::GetInstance()->Add (Format(_("%s team has skipped its turn."),
00042                               ActiveTeam().GetName().c_str()));
00043 
00044   jukebox.Play(ActiveTeam().GetSoundProfile(), "skip_turn");
00045 
00046   // End turn
00047   m_is_active = false;
00048   return true;
00049 }

Here is the call graph for this function:

void SkipTurn::Refresh (  )  [protected, virtual]

Implements Weapon.

Definition at line 53 of file skip_turn.cpp.

00054 {
00055   if (m_is_active)
00056     m_is_active = false;
00057 }


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