wp_invis Class Reference

#include <wp_invis.h>

Inherits Weapon.

Inheritance diagram for wp_invis:

Inheritance graph
[legend]
Collaboration diagram for wp_invis:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wp_invis (Player *p)
virtual ~wp_invis ()
virtual void weaponTick ()
 Executed every frame to fire the Weapon if it is a held-fire Weapon and firing.

Protected Member Functions

virtual void weaponFireAction ()
 Actions to perform when the Weapon is fired.

Private Attributes

bool invisActive

Detailed Description

Definition at line 26 of file wp_invis.h.


Constructor & Destructor Documentation

wp_invis::wp_invis ( Player p  )  [inline]

Definition at line 29 of file wp_invis.h.

References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, Weapon::canMoveWhileFiring, Weapon::myType, and Pickup::PT_INVIS.

wp_invis::~wp_invis (  )  [virtual]

Definition at line 24 of file wp_invis.cpp.

References Weapon::pawn, and Player::playRunning().

Here is the call graph for this function:


Member Function Documentation

void wp_invis::weaponTick (  )  [virtual]

Executed every frame to fire the Weapon if it is a held-fire Weapon and firing.

Reimplemented from Weapon.

Definition at line 40 of file wp_invis.cpp.

References invisActive, Weapon::pawn, Player::playInvis(), and Weapon::weaponTick().

Here is the call graph for this function:

void wp_invis::weaponFireAction (  )  [protected, virtual]

Actions to perform when the Weapon is fired.

This may be only executed once for single-fire Weapons or every frame for held-fire Weapons.

Implements Weapon.

Definition at line 29 of file wp_invis.cpp.

References Player::gm, invisActive, gameManager::invisOff, gameManager::invisOn, Weapon::pawn, and spriteObject::playSound().

Here is the call graph for this function:


Member Data Documentation

bool wp_invis::invisActive [private]

Definition at line 51 of file wp_invis.h.

Referenced by weaponFireAction(), and weaponTick().


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 23:27:56 2007 for MDuel DS by  doxygen 1.5.1-p1