Guest User

Untitled

a guest
Jul 2nd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include "Map.h"
  2.  
  3. Map::Map()
  4. {
  5. }
  6.  
  7. Map::~Map()
  8. {
  9. }
  10.  
  11. void Map::LoadContent(std::string mapID, SDL_Renderer *renderer)
  12. {
  13.     system("cls");
  14.     this->mapID = mapID;
  15.     Layer layerInstance;
  16.     layers.push_back(layerInstance);
  17.     layers[0].LoadContent("Layer1", this->mapID, renderer);
  18. }
  19. void Map::UnloadContent()
  20. {
  21.     layers[0].UnloadContent();
  22. }
  23. void Map::Update(Player &e)
  24. {
  25.     layers[0].Update(e);
  26. }
  27. void Map::Draw(SDL_Renderer *renderer)
  28. {
  29.     layers[0].Draw(renderer);
  30. }
Add Comment
Please, Sign In to add comment