feat: added copy constructor to stat
This commit is contained in:
parent
48409b1e4a
commit
9f5303ba74
@ -36,6 +36,15 @@ public class Stat {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new {@link Stat} with the same values as the
|
||||
* given {@link Stat}
|
||||
* @param toCopy is the {@link Stat} to copy
|
||||
*/
|
||||
public Stat(Stat toCopy) {
|
||||
this(toCopy.type, toCopy.value, toCopy.max);
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user