File actorContainer.hpp

class ActorContainer
#include <actorContainer.hpp>

Public Functions

ActorContainer()

Construct the actor container.

std::map<std::string, std::unique_ptr<Actor>> &getActors()

Get the map itself

Actor &getActor(const std::string &name)

Get an Actor with the specified name

void addActor(Vector2 pos, const std::string &typeName, const std::string &roomName)

Add a new Actor with a name from the GameBin and an in-room name

void removeActor(const std::string &roomName)

Remove an Actor

bool actorExists(const std::string &roomName)

Check whether an Actor with such an in-room name exists.

Private Members

std::map<std::string, std::unique_ptr<Actor>> actors