mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 22:03:56 -07:00
25 lines
No EOL
385 B
C++
Executable file
25 lines
No EOL
385 B
C++
Executable file
#ifndef _UNITMANAGER_H
|
|
#define _UNITMANAGER_H
|
|
|
|
#include <vector>
|
|
#include "Unit.h"
|
|
|
|
class CUnitManager
|
|
{
|
|
public:
|
|
CUnitManager() {}
|
|
|
|
void AddUnit(CUnit* unit);
|
|
void RemoveUnit(CUnit* unit);
|
|
|
|
void DeleteAll();
|
|
|
|
const std::vector<CUnit*>& GetUnits() const { return m_Units; }
|
|
|
|
private:
|
|
std::vector<CUnit*> m_Units;
|
|
};
|
|
|
|
extern CUnitManager g_UnitMan;
|
|
|
|
#endif |