feat: added copy constructor to stat

This commit is contained in:
Yannik Bretschneider 2021-08-08 19:31:34 +02:00
parent 48409b1e4a
commit 9f5303ba74

View File

@ -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;
}