cyphesis/rulesets/mind/AwarenessStoreProvider.h
Erik Ogenvik 71a1ebbd8a Store by type name, since TypeInfos aren't unique.
Though they should be. This indicates some underlying error.
2016-03-19 23:05:13 +01:00

46 lines
1.3 KiB
C++

/*
Copyright (C) 2015 erik
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef RULESETS_MIND_AWARENESSSTOREPROVIDER_H_
#define RULESETS_MIND_AWARENESSSTOREPROVIDER_H_
#include <rulesets/mind/AwarenessStore.h>
#include <wfmath/axisbox.h>
#include <unordered_map>
#include <memory>
class TypeNode;
class IHeightProvider;
class AwarenessStoreProvider
{
public:
AwarenessStoreProvider(IHeightProvider& heightProvider);
virtual ~AwarenessStoreProvider();
AwarenessStore& getStore(const TypeNode* type, int tileSize = 64);
protected:
std::unordered_map<std::string, AwarenessStore> m_awarenessStores;
IHeightProvider& m_heightProvider;
};
#endif /* RULESETS_MIND_AWARENESSSTOREPROVIDER_H_ */