Skip to content

Method: createObserver(Map)

1: package de.fhdw.gaming.memory.impl;
2:
3: import java.util.Map;
4:
5: import de.fhdw.gaming.core.domain.Observer;
6: import de.fhdw.gaming.core.domain.ObserverFactory;
7:
8: /**
9: * A factory for a game to hand over to the gaming framework. Allows the game to create the implemented observer.
10: */
11: public final class MemoryObserverFactoryImpl implements ObserverFactory {
12:
13: @Override
14: public String getName() {
15: return "Memory";
16: }
17:
18: @Override
19: public Observer createObserver(final Map<String, Object> parameters) {
20: return new MemoryObserverImpl();
21: }
22: }