1
0
forked from 0ad/0ad
0ad/source/simulation/FormationCollection.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

37 lines
995 B
C++

//FormationCollection.h
//Nearly identical to EntityTemplateCollection and associates i.e. EntityTemplate, Entity.
//This is the manager of the entity formation "templates"
#ifndef INCLUDED_FORMATIONCOLLECTION
#define INCLUDED_FORMATIONCOLLECTION
#include <vector>
#include "ps/CStr.h"
#include "ps/Singleton.h"
#include "Formation.h"
#define g_EntityFormationCollection CFormationCollection::GetSingleton()
class CFormationCollection : public Singleton<CFormationCollection>
{
typedef std::map<CStrW, CFormation*> templateMap;
typedef std::map<CStrW, CStr> templateFilenameMap;
templateMap m_templates;
templateFilenameMap m_templateFilenames;
public:
~CFormationCollection();
CFormation* GetTemplate( const CStrW& formationType );
int LoadTemplates();
void LoadFile( const char* path );
// Create a list of the names of all base entities, excluding template_*,
// for display in ScEd's entity-selection box.
void GetFormationNames( std::vector<CStrW>& names );
};
#endif