wp_shield Class Reference

#include <wp_shield.h>

Inherits equipWeapon.

Inheritance diagram for wp_shield:

Inheritance graph
[legend]
Collaboration diagram for wp_shield:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Definition at line 30 of file wp_shield.h.


Constructor & Destructor Documentation

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:


Member Function Documentation

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]

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 55 of file wp_shield.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