blob: 13ab834ae86cac9e76383bd07dc1db1a241ff4b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "wp_shotty.hpp"
#include <iostream>
wp_shotty::wp_shotty(float const &rg, unsigned int const &dmg, unsigned int const & mag, const char *s, const char *r)
: AWeapon(rg, dmg, mag, s, r)
{}
int wp_shotty::bang()
{
if (barrel == 0)
{
return (1);
} else {
barrel--;
std::cout << "BANG : " << barrel << "shots left" << std::endl;
PlaySound(shot);
return (0);
}
}
|