-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGunModel.java
More file actions
63 lines (60 loc) · 1.79 KB
/
GunModel.java
File metadata and controls
63 lines (60 loc) · 1.79 KB
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
public enum GunModel {
// Sidearms
Robin(0, 25, 10, 2, 7, 10, false),
Duck(400, 10, 2, 2, 3, 60, false),
Finch(400, 30, 15, 2, 7, 8, false),
Hummingbird(600, 25, 12, 2, 10, 10, true),
Raven(600, 50, 8, 2.5, 2, 4, false),
// Primary
// Light Machine Guns
Pecker(1000, 20, 20, 2.5, 15, 15, true),
Swift(1400, 25, 25, 3, 13, 12, true),
// Rifles
Crane(2000, 60, 15, 3, 3, 4, false),
Eagle(2500, 40, 25, 3, 8, 5, true),
// Shotguns
Peacock(1200, 15, 8, 3.5, 1, 40, false),
Turkey(1300, 15, 8, 3.5, 1.5, 20, false),
// Snipers
Vulture(1000, 100, 8, 3, 1.5, 2, false),
Falcon(4000, 150, 1, 2, 1, 1, false),
// Heavy Machine Guns
Rhea(2300, 25, 50, 4, 12, 15, true);
private final int price;
private final int damage;
private final int maxAmmo;
private final double reloadSpeed;
private final double fireRate;
private final double fireError;
private final boolean semiAuto;
private GunModel(int price, int damage, int maxAmmo, double reloadSpeed, double fireRate, double fireError, boolean semiAuto) {
this.price = price;
this.damage = damage;
this.maxAmmo = maxAmmo;
this.reloadSpeed = reloadSpeed;
this.fireRate = fireRate;
this.fireError = fireError;
this.semiAuto = semiAuto;
}
public int getPrice(){
return this.price;
}
public int getDamage(){
return this.damage;
}
public int getMaxAmmo() {
return this.maxAmmo;
}
public double getReloadSpeed() {
return this.reloadSpeed;
}
public double getFireRate() {
return this.fireRate;
}
public double getFireError(){
return this.fireError;
}
public boolean getSemiAuto(){
return this.semiAuto;
}
}