File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/main/kotlin/com/github/ilovegamecoding/intellijcodexp/models Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,17 @@ package com.github.ilovegamecoding.intellijcodexp.models
2
2
3
3
import com.github.ilovegamecoding.intellijcodexp.enums.Event
4
4
5
+ /* *
6
+ * CodeXPChallenge class
7
+ *
8
+ * CodeXPChallenge is a class that represents a challenge. Challenges are used to track the progress of the user.
9
+ */
5
10
object CodeXPChallengeFactory {
11
+ /* *
12
+ * Creates a list of default challenges.
13
+ *
14
+ * @return List of default challenges.
15
+ */
6
16
fun createEventDefaultChallenges (): List <CodeXPChallenge > {
7
17
return listOf (
8
18
createChallenge(
@@ -69,6 +79,17 @@ object CodeXPChallengeFactory {
69
79
)
70
80
}
71
81
82
+ /* *
83
+ * Creates a challenge with the given parameters.
84
+ *
85
+ * @param event Event of challenge.
86
+ * @param name Name of challenge.
87
+ * @param description Description of challenge.
88
+ * @param goal Goal of challenge.
89
+ * @param rewardXP Reward XP of challenge when completed.
90
+ * @param rewardXPIncrement Increment of reward XP of challenge when completed.
91
+ * @return Challenge with the given parameters.
92
+ */
72
93
private fun createChallenge (
73
94
event : Event ,
74
95
name : String ,
You can’t perform that action at this time.
0 commit comments