refactor the copy functionality for no-args watchers

This commit is contained in:
Ingmar Goudt 2019-04-07 20:22:14 +02:00
parent 311532a6e7
commit 6703ba693d
52 changed files with 73 additions and 538 deletions

View file

@ -22,16 +22,6 @@ public class SourceDidDamageWatcher extends Watcher {
super(WatcherScope.GAME);
}
public SourceDidDamageWatcher(final SourceDidDamageWatcher watcher) {
super(watcher);
this.damageSources.addAll(watcher.damageSources);
}
@Override
public SourceDidDamageWatcher copy() {
return new SourceDidDamageWatcher(this);
}
@Override
public void watch(GameEvent event, Game game) {
if (event.getType() == EventType.DAMAGED_CREATURE