-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeapon.h
79 lines (60 loc) · 1.24 KB
/
Weapon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once
#include <vector>
#include <string>
#include "MountPoint.h"
#include "Mecha.h"
using namespace std;
class Weapon
{
public:
Weapon();
Weapon(string, bool, bool, bool, bool, float, float, float, float, float, int, int, int, bool);
string getName();
void setName(string);
bool getStatus();
void setStatus(bool);
bool getInAtmo();
void setInAtmo(bool);
bool getInSpace();
void setInSpace(bool);
bool getMelee();
void setMelee(bool);
float getWeaponMass();
void setWeaponMass(float);
float getAccuracy();
void setAccuracy(float);
int getDamage();
void setDamage(int);
float getPenetration();
void setPenetration(float);
float getShred();
void setShred(float);
int getAmmo();
void setAmmo(int);
int getAmmoCap();
void setAmmoCap(int);
int getCooldown();
void setCooldown(int);
bool getOnCooldown();
void setOnCooldown(bool);
void addMountPoint(MountPoint*);
void addMountPointUnreciprocated(MountPoint*);
void attack(Mecha*, Mecha*, MountPoint*);
void destroy();
private:
string name;
bool status;
bool in_atmo;
bool in_space;
bool melee;
float weapon_mass;
float accuracy;
float damage;
float penetration;
float shred;
int ammo;
int ammo_cap;
int cooldown;
bool on_cd;
MountPoint* mountpoint;
};