Yeah, this really isn't wanting to work. Gonna need to probably redo everything
This commit is contained in:
10
aStar/App.h
10
aStar/App.h
@@ -3,6 +3,16 @@
|
||||
#include "Map.h"
|
||||
#include "Explorer.h"
|
||||
|
||||
template<typename T, int width, int height>
|
||||
class MultiArray {
|
||||
private:
|
||||
typedef T cols[height];
|
||||
cols * data;
|
||||
public:
|
||||
T& operator() (int x, int y) { return data[x][y]; }
|
||||
MultiArray() { data = new cols[width]; }
|
||||
~MultiArray() { delete[] data; }
|
||||
};
|
||||
class App {
|
||||
public:
|
||||
// Constants
|
||||
|
||||
Reference in New Issue
Block a user