#include <wp_weasel.h>
Inherits Weapon.
Inheritance diagram for wp_weasel:
Public Member Functions | |
wp_weasel (Player *p) | |
virtual | ~wp_weasel () |
Protected Member Functions | |
virtual void | weaponFireAction () |
Actions to perform when the Weapon is fired. |
Definition at line 26 of file wp_weasel.h.
wp_weasel::wp_weasel | ( | Player * | p | ) |
Definition at line 25 of file wp_weasel.cpp.
References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, Weapon::canMoveWhileFiring, Weapon::firingAnim, Weapon::myType, and Pickup::PT_WEASEL.
wp_weasel::~wp_weasel | ( | ) | [virtual] |
Definition at line 43 of file wp_weasel.cpp.
References Weapon::isFiring(), Weapon::pawn, Player::updateAnimation(), and Weapon::wasFiring().
Here is the call graph for this function:
void wp_weasel::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 49 of file wp_weasel.cpp.
References spriteObject::getBottom(), spriteObject::getFlippedh(), spriteObject::getLeft(), spriteObject::getRight(), Player::gm, Weapon::pawn, and spriteObject::setPos().
Here is the call graph for this function: