#include <wp_gun.h>
Inherits Weapon.
Inheritance diagram for wp_gun:
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 |
Definition at line 26 of file wp_gun.h.
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.
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:
const s8 wp_gun::GUNHEIGHT = -16 [static, protected] |