-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharcter.java
47 lines (37 loc) · 1016 Bytes
/
charcter.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
package com.example.roguecraftplugin;
public class CharacterAttributes {
private int strength;
private int agility;
private int intelligence;
private int vitality;
public CharacterAttributes(int strength, int agility, int intelligence, int vitality) {
this.strength = strength;
this.agility = agility;
this.intelligence = intelligence;
this.vitality = vitality;
}
public int getStrength() {
return strength;
}
public int getAgility() {
return agility;
}
public int getIntelligence() {
return intelligence;
}
public int getVitality() {
return vitality;
}
public void increaseStrength(int amount) {
strength += amount;
}
public void increaseAgility(int amount) {
agility += amount;
}
public void increaseIntelligence(int amount) {
intelligence += amount;
}
public void increaseVitality(int amount) {
vitality += amount;
}
}