package main; public class TimedEffect extends Effect { private long duration; public TimedEffect(EffectType type, TargetType target, long duration) { super(type, target); this.duration = duration; } public TimedEffect(TimedEffect e) { super(e); this.duration = e.duration; } public TimedEffect copy() { return new TimedEffect(this); } public long getDuration() { return this.duration; } }