wp_puck Class Reference

#include <wp_puck.h>

Inherits Weapon.

Inheritance diagram for wp_puck:

Inheritance graph
[legend]
Collaboration diagram for wp_puck:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wp_puck (Player *p)
virtual ~wp_puck ()

Protected Member Functions

virtual void weaponFireAction ()
 Actions to perform when the Weapon is fired.

Detailed Description

Definition at line 26 of file wp_puck.h.


Constructor & Destructor Documentation

wp_puck::wp_puck ( Player p  ) 

Definition at line 25 of file wp_puck.cpp.

References Weapon::ammo, Weapon::bHeldFire, Weapon::canFireCrouching, Weapon::canFireInAir, Weapon::canFireStanding, Weapon::canMoveWhileFiring, Weapon::firingAnim, Weapon::myType, and Pickup::PT_PUCK.

wp_puck::~wp_puck (  )  [virtual]

Definition at line 43 of file wp_puck.cpp.


Member Function Documentation

void wp_puck::weaponFireAction (  )  [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 45 of file wp_puck.cpp.

References spriteObject::getBottom(), spriteObject::getFlippedh(), spriteObject::getLeft(), spriteObject::getRight(), spriteObject::getx(), Player::gm, Weapon::pawn, spriteObject::playSound(), spriteObject::setPos(), spriteObject::setSpeed(), gameManager::throwSound, and Player::WALKSPEED.

Here is the call graph for this function:


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