Files
salmanoff/hcore/include/simulator/scene.h
T
hayodea 6beda55971 Add Director, director::CommandList, hk::Goal and fixups
* Simulator and Director are no longer singletons.
2025-01-03 21:22:03 -04:00

37 lines
712 B
C++

#ifndef _SCENE_H
#define _SCENE_H
#include <cstdint>
#include <map>
#include <mentalEntity.h>
#include <simulator/commandList.h>
namespace simulator {
class Scene
{
public:
using Id = uint32_t;
Scene();
~Scene();
bool hasMentalEntity(const MentalEntity::Id menty) const;
MentalEntity::Id addMentalEntity(const MentalEntity& menty);
void replaceMentalEntity(const MentalEntity::Id menty, const MentalEntity& newMenty);
void removeMentalEntity(const MentalEntity::Id menty);
void executeInd(void);
CommandList::Cursor haltInd(void);
private:
std::map<MentalEntity::Id, MentalEntity &> menties;
CommandList commands;
CommandList::Cursor cursor;
};
}
#endif