#ifndef LEVEL_H #define LEVEL_H #include "Player.h" #include "Screen.h" #include "Platform.h" class Level { public: Level(); // Load and prepare a new level void changeLevel(int levelNo); // Moves all the level's items around void move(); // Draw the current scene on the screen void draw(Screen *screen); // The human player Player player; private: // Background image SDL_Surface *background; // Map platforms int numPlatforms; Platform platform[576]; // Reads in the map file void loadMap(int levelNo); int cameraX; int checkCollision(SDL_Rect r); int startX, startY; }; #endif