#include <Weapon.h>
Inheritance diagram for Weapon:

Public Member Functions | |
| Weapon () | |
| Weapon (std::string filename, Person *shooter) | |
| void | load (List *info) |
| void | shoot () |
| void | update () |
| virtual Weapon * | copy (Person *shooter) |
| void | addAmmo (int dAmmo) |
| int | getAmmo () |
| SDL_Rect | drawAmmo (SDL_Rect) |
| std::string | id () |
Protected Attributes | |
| Person * | _shooter |
| Sprite * | _icon |
| int | _waitShoot |
| int | _framesSinceShoot |
| int | _bulletSpeed |
| int | _damage |
| unsigned int | _ammo |
| unsigned int | _ammoSize |
| bool | _spray |
| int | _sprayCount |
| std::string | _id |
Definition at line 12 of file Weapon.h.
|
|
Definition at line 14 of file Weapon.cpp. Referenced by copy(). |
|
||||||||||||
|
Definition at line 19 of file Weapon.cpp. References load(), and Parser::parse(). |
|
|
Definition at line 64 of file Weapon.cpp. References _ammo. Referenced by Player::addSecondary(). |
|
|
Reimplemented in WeaponPunch. Definition at line 30 of file Weapon.cpp. References _shooter, and Weapon(). Referenced by Player::copy(), Person::copy(), and Enemy::copy(). |
|
|
Definition at line 71 of file Weapon.cpp. References _ammo, _icon, Sprite::draw(), glfuncs::glPrint(), glfuncs::instance(), and Sprite::SCREEN. Referenced by Player::drawSecondaryAmmo(). |
|
|
Definition at line 25 of file Weapon.h. References _ammo. Referenced by Player::addSecondary(), and Player::update(). |
|
|
Definition at line 29 of file Weapon.h. References _id. Referenced by Player::addSecondary(). |
|
|
Definition at line 37 of file Weapon.cpp. References _ammo, _ammoSize, _bulletSpeed, _damage, _icon, _id, _spray, _waitShoot, List::empty(), List::firstList(), List::firstString(), Sprite::loadSprite(), and List::rest(). Referenced by Weapon(), and WeaponPunch::WeaponPunch(). |
|
|
Reimplemented in WeaponPunch. Definition at line 86 of file Weapon.cpp. References _ammo, _ammoSize, _bulletSpeed, _damage, _framesSinceShoot, _id, _shooter, _spray, _sprayCount, _waitShoot, Object::getId(), Level::instance(), and Level::registerObject(). Referenced by Person::shoot(), and Player::shootSecondary(). |
|
|
Definition at line 121 of file Weapon.cpp. References _framesSinceShoot. Referenced by Player::update(), and Person::update(). |
|
|
Definition at line 41 of file Weapon.h. Referenced by addAmmo(), drawAmmo(), getAmmo(), load(), and shoot(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 37 of file Weapon.h. Referenced by WeaponPunch::shoot(), shoot(), and update(). |
|
|
Definition at line 34 of file Weapon.h. Referenced by drawAmmo(), and load(). |
|
|
|
|
|
Definition at line 32 of file Weapon.h. Referenced by WeaponPunch::copy(), copy(), WeaponPunch::shoot(), and shoot(). |
|
|
|
|
|
Definition at line 46 of file Weapon.h. Referenced by shoot(). |
|
|
Definition at line 36 of file Weapon.h. Referenced by load(), WeaponPunch::shoot(), and shoot(). |
1.4.6-NO