File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
src/main/kotlin/com/github/ilovegamecoding/intellijcodexp/model Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com.github.ilovegamecoding.intellijcodexp.model
2
2
3
3
import com.github.ilovegamecoding.intellijcodexp.services.CodeXPService
4
+ import java.util.*
4
5
5
6
/* *
6
7
* CodeXPChallenge class
7
8
*
8
9
* CodeXPChallenge is a class that represents a challenge. Challenges are used to track the progress of the user.
9
10
*/
10
11
class CodeXPChallenge () {
12
+ /* *
13
+ * ID of challenge.
14
+ */
15
+ var id: String = " "
16
+
11
17
/* *
12
18
* Event of challenge.
13
19
*/
@@ -28,6 +34,11 @@ class CodeXPChallenge() {
28
34
*/
29
35
var rewardXP: Long = 0L
30
36
37
+ /* *
38
+ * Increment of reward XP of challenge when completed.
39
+ */
40
+ var rewardXPIncrement: Long = 0L
41
+
31
42
/* *
32
43
* Current progress of challenge.
33
44
*/
@@ -38,6 +49,11 @@ class CodeXPChallenge() {
38
49
*/
39
50
var goal: Long = 0L
40
51
52
+ /* *
53
+ * Increment of goal of challenge.
54
+ */
55
+ var goalIncrement: Long = 0L
56
+
41
57
/* *
42
58
* Constructor for CodeXPChallenge with all parameters.
43
59
*/
@@ -46,14 +62,19 @@ class CodeXPChallenge() {
46
62
name: String ,
47
63
description: String ,
48
64
rewardXP: Long ,
65
+ rewardXPIncrement: Long ,
49
66
progress: Long ,
50
- goal: Long
67
+ goal: Long ,
68
+ goalIncrement: Long
51
69
) : this () {
70
+ this .id = UUID .randomUUID().toString()
52
71
this .event = event
53
72
this .name = name
54
73
this .description = description
55
74
this .rewardXP = rewardXP
75
+ this .rewardXPIncrement = rewardXPIncrement
56
76
this .progress = progress
57
77
this .goal = goal
78
+ this .goalIncrement = goalIncrement
58
79
}
59
80
}
You can’t perform that action at this time.
0 commit comments