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...