- // Here we store two maps, for evaluate and scaling functions...
- std::pair<EFMap, SFMap> maps;
+ typedef typename Map<T>::type M;
+ typename M::const_iterator it = map<M>().find(key);
+ return it != map<M>().end() ? it->second : NULL;
+ }
+
+private:
+ template<EndgameType E> void add(const std::string& keyCode);
+ template<typename M> const M& map() const;