void addEffect(string name, int duration, character target, character source) { Status newStatus = new Status(name, duration, target, source); target.inflictEffect(newStatus); source.causeEffect(newStatus); statuslist.Add(newStatus); refreshView(); }
public void update(string _name, int _duration, character _target, character _source) { name = _name; duration = _duration; target.removeInflict(this); _target.inflictEffect(this); target = _target; source.removeCause(this); _source.causeEffect(this); source = _source; }