#include <equipWeapon.h>
Inherits Weapon.
Inherited by wp_boot, wp_dunce, and wp_shield.
Inheritance diagram for equipWeapon:
Public Member Functions | |
equipWeapon (Player *p) | |
virtual | ~equipWeapon () |
Protected Member Functions | |
virtual void | equipAction ()=0 |
actions to perform when the Weapon is given to a Player | |
virtual void | unEquipAction ()=0 |
actions to perform when the Weapon is removed from a Player's inventory | |
Protected Attributes | |
spriteObject * | effect |
a spriteObject to spawn and attach to the Player who owns this Weapon, if necessary |
This is usually used to spawn a spriteObject and attach it to the Player for the duration of them holding the Weapon.
Definition at line 37 of file equipWeapon.h.
equipWeapon::equipWeapon | ( | Player * | p | ) |
Definition at line 23 of file equipWeapon.cpp.
equipWeapon::~equipWeapon | ( | ) | [virtual] |
Definition at line 28 of file equipWeapon.cpp.
References spriteObject::destroy(), and effect.
Here is the call graph for this function:
virtual void equipWeapon::equipAction | ( | ) | [protected, pure virtual] |
virtual void equipWeapon::unEquipAction | ( | ) | [protected, pure virtual] |
spriteObject* equipWeapon::effect [protected] |
a spriteObject to spawn and attach to the Player who owns this Weapon, if necessary
Definition at line 49 of file equipWeapon.h.
Referenced by wp_shield::equipAction(), wp_dunce::equipAction(), wp_boot::equipAction(), wp_dunce::unEquipAction(), wp_boot::unEquipAction(), wp_shield::weaponTick(), and ~equipWeapon().