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