refactor the copy functionality for no-args watchers

This commit is contained in:
Ingmar Goudt 2019-04-07 20:22:14 +02:00
parent 80e7593bb1
commit 1852de2f47
52 changed files with 73 additions and 538 deletions

View file

@ -24,13 +24,6 @@ public class PlanarRollWatcher extends Watcher {
super(WatcherScope.GAME);
}
public PlanarRollWatcher(final PlanarRollWatcher watcher) {
super(watcher);
for (Entry<UUID, Integer> entry : watcher.numberTimesPlanarDieRolled.entrySet()) {
numberTimesPlanarDieRolled.put(entry.getKey(), entry.getValue());
}
}
@Override
public void watch(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.PLANAR_DIE_ROLLED) {