#include <wp_chut.h>
Inherits Weapon.
Inheritance diagram for wp_chut:
Public Member Functions | |
wp_chut (Player *p) | |
virtual | ~wp_chut () |
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. | |
virtual void | stopFiring () |
Called by a Player to stop this Weapon from firing, usually to stop a held-fire Weapon's weaponFireAction(). | |
Static Protected Attributes | |
static const s16 | FALLSPEED = 128 |
Definition at line 26 of file wp_chut.h.
wp_chut::wp_chut | ( | Player * | p | ) | [inline] |
Definition at line 29 of file wp_chut.h.
References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, Weapon::canMoveWhileFiring, Weapon::myType, and Pickup::PT_CHUT.
wp_chut::~wp_chut | ( | ) | [virtual] |
Definition at line 24 of file wp_chut.cpp.
References Weapon::isFiring(), Weapon::pawn, Player::updateAnimation(), and Weapon::wasFiring().
Here is the call graph for this function:
void wp_chut::weaponTick | ( | ) | [virtual] |
Executed every frame to fire the Weapon if it is a held-fire Weapon and firing.
Reimplemented from Weapon.
Definition at line 30 of file wp_chut.cpp.
References FALLSPEED, spriteObject::getvy(), Weapon::isFiring(), massObject::isOnGround(), Weapon::pawn, spriteObject::setFrame(), spriteObject::setvy(), stopFiring(), Player::updateAnimation(), Weapon::wasFiring(), and Weapon::weaponTick().
Here is the call graph for this function:
void wp_chut::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 48 of file wp_chut.cpp.
References gameManager::chutOpen, Player::gm, Weapon::pawn, spriteObject::playSound(), and Player::setUnstable().
Here is the call graph for this function:
void wp_chut::stopFiring | ( | ) | [protected, virtual] |
Called by a Player to stop this Weapon from firing, usually to stop a held-fire Weapon's weaponFireAction().
Reimplemented from Weapon.
Definition at line 56 of file wp_chut.cpp.
References gameManager::chutClose, Player::gm, Weapon::pawn, spriteObject::playSound(), Player::setUnstable(), and Weapon::stopFiring().
Referenced by weaponTick().
Here is the call graph for this function:
const s16 wp_chut::FALLSPEED = 128 [static, protected] |