forked from relaxingstew/GameCodeScaffolding
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Trinkets.java
82 lines (68 loc) · 1.95 KB
/
Trinkets.java
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
79
80
81
82
import java.util.ArrayList;
public class Trinket
{
private String description;
private String trinketName;
private int buffHealth;
private int buffMp;
private int buffStamina;
private int price;
public Trinket(String description, String trinketName, int buffStamina, int buffHealth, int buffMp, int price)
{
this.description = description;
this.trinketName = trinketName;
this.buffStamina = buffStamina ;
this.buffHealth = buffHealth ;
this.buffMp = buffMp;
this.price = price;
}
public int increaseHealth(int currentHealth)
{
currentHealth = currentHealth + buffHealth;
return currentHealth;
}
public int increaseMp(int currentMp)
{
currentMp = currentMp + buffMp;
return currentMp;
}
public int increaseStamina(int currentStamina)
{
currentStamina = currentStamina + buffStamina;
return currentStamina;
}
//Getters and setters
public String getDescription() {
return description;
}
public int getBuffHealth() {
return buffHealth;
}
public int getBuffMp() {
return buffMp;
}
public int getBuffstamina() {
return buffStamina;
}
public String getTrinketName()
{
return trinketName;
}
public int getPrice() {return price;}
public void setDescription(String description) {
this.description = description;
}
public void setBuffHealth(int buffHealth) {
this.buffHealth = buffHealth;
}
public void setBuffMp(int buffMp) {
this.buffMp = buffMp;
}
public void setBuffstamina(int buffstamina) {
this.buffStamina = buffstamina;
}
public void setTrinketName(String trinketName) {
this.trinketName = trinketName;
}
public void setPrice (int price) {this.price = price;}
}