diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java index 64f399d..09c5769 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java @@ -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; }