File interactablesContainer.hpp¶
Typedefs
-
using json = nlohmann::json
-
class InteractablesContainer : public BaseContainer<std::unique_ptr<Interactable>>
- #include <interactablesContainer.hpp>
Container of Interactables that is to be used by a Room
Public Functions
-
InteractablesContainer()
Empty constructor
-
Interactable *add(IVector pos, const std::string &type)
Add a new Interactable with tile position and type
-
void addBin(InteractableInRoomBin bin)
Add a new Interactable using a bin structure
-
void addBinFromTypename(Vector2 pos, const std::string &type)
Add a new Interactable using a Vector2 tile position and an interactable type in the GameBin
-
Interactable *getInt(IVector pos)
Get an Interactable by its tile position
-
Interactable *getIntVec2(Vector2 pos)¶
-
void setInteractableType(IVector pos, const std::string &type)
Change the Interactable’s type at the specified tile position
-
std::vector<Interactable*> getList()
Get the vector that contains all Interactables
-
void addBinVector(const std::vector<InteractableInRoomBin> &bin)
Add interactables from binary structures.
-
InteractablesContainer()