File baseContainer.hpp

template<typename T>
class BaseContainer
#include <baseContainer.hpp>

Public Functions

inline BaseContainer()
inline void pushObject(IVector pos, T obj)

Pushes an object to the map.

inline void pushObjectVec2(Vector2 pos, T obj)
inline void removeObject(IVector pos)

Remove an object existing at a position.

inline void removeObjectVec2(Vector2 pos)
inline bool objectExistsAtPosition(IVector pos)

Check if an object exists at specified position.

inline bool objectExistsAtPositionVec2(Vector2 pos)
inline T &getObjectAtPosition(IVector pos)

Gets the object at a specified IVector Position.

inline std::map<IVector, T> &getObjects()

Get a reference to the whole object map.

Protected Attributes

std::map<IVector, T> objects = {}

The list of objects kept inside of this container.