Guest User

Level.cpp

a guest
Sep 16th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "Level.h"
  2. #include <iostream>
  3. #include <fstream>
  4.  
  5.  
  6. Level::Level()
  7. {
  8. }
  9.  
  10.  
  11. void Level::loadLevel(string fileName){
  12.     ifstream file;
  13.     file.open(fileName);
  14.  
  15.     string input;
  16.     while (getline(file, input))
  17.     {
  18.         _levelData.push_back(input);
  19.     }
  20.  
  21.     printf("You successfully loaded your map!");
  22. }
  23. void Level::printLevel(){}
Advertisement
Add Comment
Please, Sign In to add comment