Class Group

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class Group : public AABB

Subclassed by ZombieworldGroup

Public Functions

void addAABB(AABB &aabb)

Adds an AABB that will be part of this AABB group.

Parameters
  • aabb: The AABB to add

void addConnection(Connection &connection)

Add an connection to the vector of connection held inside the group.

Parameters
  • connection: The connection to add

void generateAllDoorsInAABB()

Generates all doors in each AABB of this group.

std::vector<AABB*> &getAABBList()

Gets the list of AABBs this group keeps track of.

Return

std::vector<AABB*>& Reference to the AABB group kept track of.

std::vector<Connection*> &getConnectionList()

Returns the Connection vector for this Group.

Return

std::vector<Connection*>& The connection list

AABB *getAABB(std::string id)

Get a particular AABB contained by this group. The AABB can be identified by its ID.

Return

AABB* Pointer to the relevant AABB or nullptr if it doesn’t exist

Parameters
  • id: The id of the AABB to find

void toSemanticMapJSON(nlohmann::json &json_base)

Adds the JSON representation of this object to the relevant lists of the base json.

Return

nlohmann::json The base json

void toLowLevelMapJSON(nlohmann::json &json_base)

Adds the Alternate JSON representation of this object to the relevant lists of the base json.

Return

nlohmann::json The base json

Group(std::string id)

Construct a new Group object.

Parameters
  • id: The id to give the Group object.

~Group()

Destroy the Group object.