1
0
forked from 0ad/0ad
0ad/source/simulation/BaseEntityCollection.h
MarkT 6d5afc10ff Added PASAP entity systems
This was SVN commit r246.
2004-05-21 23:46:16 +00:00

24 lines
622 B
C++
Executable File

// Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com)
#ifndef BASEENT_COLLECTION_INCLUDED
#define BASEENT_COLLECTION_INCLUDED
#include <vector>
#include "CStr.h"
#include "Singleton.h"
#include "ObjectEntry.h"
#include "BaseEntity.h"
#define g_EntityTemplateCollection CBaseEntityCollection::GetSingleton()
class CBaseEntityCollection : public Singleton<CBaseEntityCollection>
{
std::vector<CBaseEntity> m_templates;
public:
CBaseEntity* getTemplate( CStr entityType );
void loadTemplates();
void addTemplate( CBaseEntity& temp );
CBaseEntity* getTemplateByActor( CObjectEntry* actor );
};
#endif