Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Tile.h"
- #include "FileManager.h"
- #include <string>
- #include <algorithm>
- class Layer
- {
- public:
- Layer();
- ~Layer();
- void LoadContent(std::string layerID, std::string mapID, SDL_Renderer *renderer);
- void UnloadContent();
- void Update(Player &player);
- void Draw(SDL_Renderer *renderer);
- private:
- Texture tileSheet;
- FileManager file;
- Tile tile;
- SDL_Rect imageRect;
- std::vector<std::vector<std::string>> attributes;
- std::vector<std::vector<std::string>> contents;
- std::vector<std::pair<int, int>> solidTiles;
- std::vector<Tile> tiles;
- std::pair<int,int> SetTiles(std::string tileString);
- float posX;
- float posY;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement