Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/robotikka. Lee Ve Tom Ve Ani Doin our Robottttt
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#pragma once
#include <vector>
using namespace std;
class Cell {public: static const int OCCUPIED = 1; static const int FREE = 0; static const int WALL = 2; static const unsigned NUM_NEIGHBORS = 8;
double Cell_Cost;
Cell(unsigned x, unsigned y, double cell_cost = 1.0); Cell(const Cell& cell); Cell(const Cell* cell);
~Cell();
void init(vector<Cell*> neighbors);
inline bool equalsTo(Cell* cell) { return (this->getX() == cell->getX() && this->getY() == cell->getY()); }
inline vector<Cell*> getNeighbors() { return m_Neighbors; };
inline unsigned getX() { return m_X; };
inline unsigned getY() { return m_Y; };
inline bool getIsInit() { return m_IsInit; };
bool isFree();
protected: bool m_IsInit; vector<Cell*> m_Neighbors; unsigned m_X; unsigned m_Y;};