-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChampion.java
More file actions
47 lines (43 loc) · 1010 Bytes
/
Champion.java
File metadata and controls
47 lines (43 loc) · 1010 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
44
45
46
47
import java.util.*;
/**
* Write a description of class Champion here.
*
* @author (your name)
* @version (a version number or a date)
*/
public abstract class Champion
{
// instance variables - replace the example below with your own
private String name;
private int skillLevel;
private int hireFee;
private ArrayList<ChampionState> champState = new ArrayList<ChampionState>();
/**
* Constructor for objects of class Champion
*/
public Champion(String name)
{
this.name = name;
skillLevel = 0;
hireFee = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public String getName()
{
return name;
}
public int getSkillLevel()
{
return skillLevel;
}
public int getHireFee()
{
return hireFee;
}
}
//uhjhjhjgjghjghjghjhgjghjjghpoop