212
|
1 |
#ifndef WEAPON_HH
|
|
2 |
#define WEAPON_HH
|
|
3 |
|
|
4 |
#include "Timer.hh"
|
|
5 |
#include <string>
|
|
6 |
|
|
7 |
class Weapon {
|
|
8 |
public:
|
|
9 |
/* const TickCount age;
|
|
10 |
const float velocity;
|
|
11 |
const float explosionRadius;
|
|
12 |
const int reloadTime; //in ms
|
|
13 |
|
|
14 |
const int clipSize;
|
|
15 |
const bool visible;
|
|
16 |
|
|
17 |
const std::string name;
|
|
18 |
*/
|
|
19 |
|
|
20 |
TickCount age;
|
|
21 |
float velocity;
|
|
22 |
float explosionRadius;
|
|
23 |
int reloadTime; //in ms
|
|
24 |
|
|
25 |
int clipSize;
|
|
26 |
bool visible;
|
|
27 |
|
|
28 |
std::string name;
|
|
29 |
|
|
30 |
Weapon(TickCount age, float velocity, float explosionRadius, int reloadTime, std::string name);
|
|
31 |
|
|
32 |
Weapon(const Weapon& orig);
|
|
33 |
};
|
|
34 |
|
|
35 |
#endif
|