1
0
forked from 0ad/0ad
0ad/source/simulation/TechnologyCollection.h
janwas b755ddefda remove all author/modified by tags.
make include guards consistent.

This was SVN commit r5040.
2007-05-07 16:33:24 +00:00

35 lines
905 B
C++

//Manages the tech templates. More detail: see CFormation and CEntityTemplate (collections)
#ifndef INCLUDED_TECHNOLOGYCOLLECTION
#define INCLUDED_TECHNOLOGYCOLLECTION
#include "ps/CStr.h"
#include "ps/Singleton.h"
#include "Technology.h"
#include "ps/Game.h"
#define g_TechnologyCollection CTechnologyCollection::GetSingleton()
class CTechnologyCollection : public Singleton<CTechnologyCollection>
{
typedef std::map<CStrW, CTechnology*> TechMap;
typedef std::map<CStrW, CStr> TechFilenameMap;
TechMap m_techs[PS_MAX_PLAYERS+1];
TechFilenameMap m_techFilenames;
public:
std::vector<CTechnology*> activeTechs[PS_MAX_PLAYERS+1];
CTechnology* GetTechnology( const CStrW& techType, CPlayer* player );
~CTechnologyCollection();
int LoadTechnologies();
// called by non-member trampoline via LoadTechnologies
void LoadFile( const char* path );
};
#endif