wp_gun Class Reference

#include <wp_gun.h>

Inherits Weapon.

Inheritance diagram for wp_gun:

Inheritance graph
[legend]
Collaboration diagram for wp_gun:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wp_gun (Player *p)
virtual ~wp_gun ()

Protected Member Functions

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

Static Protected Attributes

static const s8 GUNHEIGHT = -16

Detailed Description

Definition at line 26 of file wp_gun.h.


Constructor & Destructor Documentation

wp_gun::wp_gun ( Player p  ) 

Definition at line 25 of file wp_gun.cpp.

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

wp_gun::~wp_gun (  )  [virtual]

Definition at line 43 of file wp_gun.cpp.


Member Function Documentation

void wp_gun::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 47 of file wp_gun.cpp.

References Weapon::bHeldFire, gameManager::bulletReflect, Weapon::canMoveWhileFiring, Weapon::fireAnimSpeed, Weapon::firingAnim, spriteObject::getBottom(), spriteObject::getFlippedh(), Player::getWeapon(), spriteObject::getx(), Player::gm, gameManager::gunFire, GUNHEIGHT, Weapon::pawn, gameManager::player1, gameManager::player2, gameManager::playerDisintegrated(), spriteObject::playSound(), spriteObject::pointCollision(), spriteObject::setArbitraryAnim(), Player::setInputInterrupt(), and spriteObject::setvx().

Here is the call graph for this function:


Member Data Documentation

const s8 wp_gun::GUNHEIGHT = -16 [static, protected]

Definition at line 35 of file wp_gun.h.

Referenced by weaponFireAction().


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