Updating the ScreenManager and ScreenManagerRemoteControl classes
Open the ScreenManagerRemoteControl.h
file and uncomment everything so that the code is the same as the following. I have highlighted the lines that have been uncommented:
#pragma once #include <string> #include <vector> #include "GameObject.h" #include "GameObjectSharer.h" using namespace std; class ScreenManagerRemoteControl { public: virtual void SwitchScreens(string screenToSwitchTo) = 0; virtual void loadLevelInPlayMode(string screenToLoad) = 0; virtual vector<GameObject>& getGameObjects() = 0; virtual GameObjectSharer& shareGameObjectSharer() = 0; };
Next, open ScreenManager.h
, which implements this interface and uncomments all the commented-out code. The code in question is abbreviated and highlighted as follows:
... #include "SelectScreen.h" //#include...