forked from Nadeem24/CODE-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChallenge.java
More file actions
43 lines (39 loc) · 915 Bytes
/
Challenge.java
File metadata and controls
43 lines (39 loc) · 915 Bytes
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
import java.util.*;
/**
* Write a description of class Challenge here.
*
* @author (your name)
* @version (a version number or a date)
* Nadeem
*/
public class Challenge
{
// instance variables - replace the example below with your own
private int challNum;
private String enemyName;
private int skillLevel;
private int reward;
private ArrayList<ChallengeType> challType = new ArrayList<ChallengeType>();
/**
* Constructor for objects of class Challenge
*/
public Challenge(String eName, int sLevel, int reward)
{
this.challNum = challNum;
enemyName = eName;
skillLevel = sLevel;
this.reward = reward;
}
public String getEnemyName()
{
return enemyName;
}
public int getskillLevel()
{
return skillLevel;
}
public int getReward()
{
return reward;
}
}