Question: The Item and Building structs are now going to be classes with their own . h and . cpp files. We are adding three new

The Item and Building structs are now going to be classes with their own .h and .cpp files.
We are adding three new functions to source.cpp:
void saveBuildings(const std::string& saveFile, const std::vector& blueprints);
std::vector loadBuildings(const std::string& loadFile);
Building randomBuilding(const std::vector& blueprints);
Most of the other functions are being moved to the classes. The only exception is the findBuilding function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!