-
Notifications
You must be signed in to change notification settings - Fork 1
/
cMap.h
35 lines (30 loc) · 695 Bytes
/
cMap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef CMAP_H
#define CMAP_H
#include <iostream>
#include <string>
#include <algorithm>
#include <sstream>
#include <fstream>
#include "tinyxml.h"
#include "tinystr.h"
#include "gl_const.h"
class cMap
{
public:
int **Grid;
int height, width;
int *start_i, *start_j;
int *goal_i, *goal_j;
int agents;
public:
cMap();
~cMap();
bool getMap(const char* FileName);
bool CellIsTraversable (int i, int j) const;
bool CellOnGrid (int i, int j) const;
bool CellIsObstacle(int i, int j) const;
int getValue(int i, int j) const;
void addConstraint(int i,int j);
void removeConstraint(int i,int j);
};
#endif