#include <wp_shield.h>
Inherits equipWeapon.
Inheritance diagram for wp_shield:
Public Member Functions | |
wp_shield (Player *p) | |
virtual | ~wp_shield () |
virtual void | weaponTick () |
Executed every frame to fire the Weapon if it is a held-fire Weapon and firing. | |
Protected Member Functions | |
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 | |
virtual void | weaponFireAction () |
Actions to perform when the Weapon is fired. |
Definition at line 30 of file wp_shield.h.
wp_shield::wp_shield | ( | Player * | p | ) | [inline] |
Definition at line 33 of file wp_shield.h.
References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, equipAction(), Weapon::myType, and Pickup::PT_SHIELD.
Here is the call graph for this function:
wp_shield::~wp_shield | ( | ) | [virtual] |
Definition at line 24 of file wp_shield.cpp.
References unEquipAction().
Here is the call graph for this function:
void wp_shield::weaponTick | ( | ) | [virtual] |
Executed every frame to fire the Weapon if it is a held-fire Weapon and firing.
Reimplemented from Weapon.
Definition at line 29 of file wp_shield.cpp.
References equipWeapon::effect, Player::isOnRope(), Weapon::pawn, spriteObject::setPos(), and Weapon::weaponTick().
Here is the call graph for this function:
void wp_shield::equipAction | ( | ) | [protected, virtual] |
actions to perform when the Weapon is given to a Player
Implements equipWeapon.
Definition at line 39 of file wp_shield.cpp.
References spriteObject::addChild(), spriteObject::COL_SOLID, equipWeapon::effect, gameManager::FXSprite, spriteObject::giveSprite(), Player::gm, Weapon::pawn, spriteObject::setBounds(), spriteObject::setCollision(), spriteObject::setFrame(), and spriteObject::setPallete().
Referenced by wp_shield().
Here is the call graph for this function:
void wp_shield::unEquipAction | ( | ) | [protected, virtual] |
actions to perform when the Weapon is removed from a Player's inventory
Implements equipWeapon.
Definition at line 51 of file wp_shield.cpp.
References Weapon::pawn, and spriteObject::removeChild().
Referenced by ~wp_shield().
Here is the call graph for this function:
virtual void wp_shield::weaponFireAction | ( | ) | [inline, protected, virtual] |