wp_dunce Class Reference

#include <wp_dunce.h>

Inherits equipWeapon.

Inheritance diagram for wp_dunce:

Inheritance graph
[legend]
Collaboration diagram for wp_dunce:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Definition at line 30 of file wp_dunce.h.


Constructor & Destructor Documentation

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:


Member Function Documentation

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]

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 53 of file wp_dunce.h.


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 23:27:56 2007 for MDuel DS by  doxygen 1.5.1-p1