-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSkillLevel.java
More file actions
113 lines (96 loc) · 2.89 KB
/
Copy pathSkillLevel.java
File metadata and controls
113 lines (96 loc) · 2.89 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
* Authors: Jerry Li & Victor Jiang
* Date: June 13, 2025
* Description: This class stores information for one level of a skill, ex. damage, cooldown
*/
public class SkillLevel {
// Miscellaneous properties
public Integer id;
public Integer cooldown;
public Integer damage;
public Double radius;
public Integer width;
public Integer angelHp;
public Integer count;
// Additional optional fields for advanced skill behaviour
public Integer orbCount;
public Float orbSpeed;
public Boolean isCelestial;
public Boolean prismatic;
public Integer solarFlareDamage;
public Integer solarFlareCooldown;
public Boolean isSolarFlare;
// Constructor
public SkillLevel(Integer id,
Integer cooldown,
Integer damage,
Double radius,
Integer width,
Integer angelHp,
Integer count,
Integer orbCount,
Float orbSpeed,
Boolean isCelestial,
Boolean isPrismatic,
Integer solarFlareDamage,
Integer solarFlareCooldown,
Boolean isSolarFlare) {
this.id = id != null ? id : 0;
this.cooldown = cooldown != null ? cooldown : 0;
this.damage = damage != null ? damage : 0;
this.radius = radius != null ? radius : 0.0;
this.width = width != null ? width : 0;
this.angelHp = angelHp != null ? angelHp : 0;
this.count = count != null ? count : 0;
this.orbCount = orbCount;
this.orbSpeed = orbSpeed;
this.isCelestial = isCelestial != null ? isCelestial : false;
this.prismatic = isPrismatic != null ? isPrismatic : Boolean.FALSE;
this.solarFlareDamage = solarFlareDamage;
this.solarFlareCooldown = solarFlareCooldown;
this.isSolarFlare = isSolarFlare;
}
// Getter method for each property
public int getId() {
return id;
}
public int getCooldown() {
return cooldown;
}
public int getDamage() {
return damage;
}
public float getRadius() {
return radius.floatValue();
}
public int getWidth() {
return width;
}
public int getAngelHp() {
return angelHp;
}
public int getCount() {
return count;
}
public Integer getOrbCount() {
return orbCount;
}
public Float getOrbSpeed() {
return orbSpeed;
}
public boolean isCelestial() {
return isCelestial != null && isCelestial;
}
public boolean isPrismatic() {
return prismatic != null && prismatic;
}
public int getSolarFlareDamage() {
return solarFlareDamage != null ? solarFlareDamage : 0;
}
public float getSolarFlareCooldown() {
return solarFlareCooldown != null ? solarFlareCooldown : 0;
}
public boolean isSolarFlare() {
return Boolean.TRUE.equals(isSolarFlare);
}
}