#include <wp_boot.h>
Inherits equipWeapon.
Inheritance diagram for wp_boot:
Public Member Functions | |
wp_boot (Player *p) | |
virtual | ~wp_boot () |
Protected Member Functions | |
virtual void | weaponFireAction () |
Actions to perform when the Weapon is fired. | |
virtual void | equipAction () |
actions to perform when the Weapon is given to a Player | |
virtual void | unEquipAction () |
actions to perform when the Weapon is removed from a Player's inventory |
Definition at line 30 of file wp_boot.h.
wp_boot::wp_boot | ( | Player * | p | ) | [inline] |
Definition at line 33 of file wp_boot.h.
References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, Weapon::canMoveWhileFiring, equipAction(), Weapon::myType, and Pickup::PT_BOOT.
Here is the call graph for this function:
wp_boot::~wp_boot | ( | ) | [virtual] |
Definition at line 24 of file wp_boot.cpp.
References unEquipAction().
Here is the call graph for this function:
void wp_boot::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_boot.cpp.
References gameManager::bootsJump, Player::gm, Player::jump(), Weapon::pawn, and spriteObject::playSound().
Here is the call graph for this function:
void wp_boot::equipAction | ( | ) | [protected, virtual] |
actions to perform when the Weapon is given to a Player
Implements equipWeapon.
Definition at line 29 of file wp_boot.cpp.
References spriteObject::addChild(), gameManager::bootsGFX, gameManager::bootsSprite, equipWeapon::effect, spriteObject::getFrame(), spriteObject::giveGFX(), Player::gm, Weapon::pawn, gameManager::player1, spriteObject::setAttachment(), spriteObject::setFrame(), and spriteObject::setPallete().
Referenced by wp_boot().
Here is the call graph for this function:
void wp_boot::unEquipAction | ( | ) | [protected, virtual] |
actions to perform when the Weapon is removed from a Player's inventory
Implements equipWeapon.
Definition at line 39 of file wp_boot.cpp.
References equipWeapon::effect, spriteObject::getAttachment(), Weapon::pawn, spriteObject::removeChild(), and spriteObject::setAttachment().
Referenced by ~wp_boot().
Here is the call graph for this function: