December 2015
Beginner to intermediate
522 pages
11h 21m
English
In this last portion of the chapter, we will be covering small changes and additions/editions that have been made all over the code written in the previous chapters in order to make this possible, starting with the shared context, which is now moved into its own header file.
Out of all of the extra classes we defined, some of them need to be accessible to the rest of the code-base. This is what the shared context structure looks like now:
class Map; struct SharedContext{ SharedContext(): m_wind(nullptr), m_eventManager(nullptr), m_textureManager(nullptr), m_entityManager(nullptr), m_gameMap(nullptr){} Window* m_wind; EventManager* m_eventManager; TextureManager* m_textureManager; EntityManager* ...Read now
Unlock full access