- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# WeaponPunch Class Reference

`#include <Weapon.h>`

Inheritance diagram for WeaponPunch:

List of all members.

## Public Member Functions
| WeaponPunch ()
| WeaponPunch (std::string filename, Person *shooter)
WeaponPunch * | copy (Person *shooter)
void | shoot ()

## Detailed Description

Definition at line 51 of file Weapon.h.

## Constructor & Destructor Documentation

WeaponPunch::WeaponPunch | ( |  | ) |

| Definition at line 14 of file WeaponPunch.cpp. Referenced by copy().

WeaponPunch::WeaponPunch | ( | std::string | filename,
|  | Person * | shooter
| ) |

| Definition at line 20 of file WeaponPunch.cpp. References Weapon::load(), and Parser::parse().

## Member Function Documentation

WeaponPunch * WeaponPunch::copy | ( | Person * | shooter | ) | `[virtual]`

| Reimplemented from Weapon. Definition at line 30 of file WeaponPunch.cpp. References Weapon::_shooter, and WeaponPunch(). Referenced by Player::copy().

void WeaponPunch::shoot | ( |  | ) |

| Reimplemented from Weapon. Definition at line 37 of file WeaponPunch.cpp. References Weapon::_framesSinceShoot, Weapon::_shooter, Weapon::_waitShoot, ENEMY, CommandManager::execute(), Object::getBox(), Person::getXDirection(), CommandManager::instance(), LEFT, CollisionHandler::ObjsColliding(), and Person::setPos(). Referenced by Person::shoot().

The documentation for this class was generated from the following files:

- C:/Documents and Settings/jegan/Desktop/projectX/Weapon.h
- C:/Documents and Settings/jegan/Desktop/projectX/WeaponPunch.cpp