-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit.pde
58 lines (51 loc) · 1.26 KB
/
Unit.pde
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
public class Unit {
private String name, myClass;
//private String myClass;
private int maxHP, str, skl, spd, lck, def, res, mov, startingX, startingY;
private boolean highlighted;
public Unit() {
this.name = "";
this.myClass = "";
this.maxHP = 20;
this.str = 5;
this.skl = 5;
this.spd = 5;
this.def = 5;
this.lck = 5;
this.res = 5;
this.mov = 5;
this.startingX = 0;
this.startingY = 0;
this.highlighted = false;
}
public Unit(String nm, String mClass, int mHP, int strength, int skill, int speed, int luck, int defense, int resistance, int movement, int firstX, int firstY, boolean hlighted) {
name = nm;
myClass = mClass;
maxHP = mHP;
str = strength;
skl = skill;
spd = speed;
lck = luck;
def = defense;
res = resistance;
mov = movement;
startingX = firstX;
startingY = firstY;
highlighted = hlighted;
}
public int getStartingX() {
return startingX;
}
public int getStartingY() {
return startingY;
}
public int getMovement() {
return mov;
}
public boolean getHighlight() {
return highlighted;
}
public void highlightThis() {
highlighted = true;
}
}