#include <skip_turn.h>
Inheritance diagram for SkipTurn:
Public Member Functions | |
SkipTurn () | |
Protected Member Functions | |
bool | p_Shoot () |
void | Refresh () |
Definition at line 28 of file skip_turn.h.
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 }
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 }