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 saveBuildingsconst std::string& saveFile, const std::vector& blueprints;
std::vector loadBuildingsconst std::string& loadFile;
Building randomBuildingconst 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
