Arch Game Engine  0.2
map.h
1 #ifndef MAP_H
2 #define MAP_H
3 
4 #include <vector>
5 #include <iostream>
6 using namespace std;
7 #include <fstream>
8 
10 class Map {
11 private:
12  vector< vector<int> > map;
13  int startX, startY;
14 public:
15  Map();
16  ~Map();
18  void loadMap(string filename);
20  int getX() const { return startX; }
22  int getY() const { return startY; }
24  vector< vector<int> > getMap() const { return map; }
25 };
26 
27 #endif //MAP_H
vector< vector< int > > getMap() const
Get the vector of integers found in the file.
Definition: map.h:24
int getY() const
Get the start y coordinate found in the file.
Definition: map.h:22
This class takes in a file and loads it in for the map.
Definition: map.h:10
int getX() const
Get the start x coordinate found in the file.
Definition: map.h:20