From 518619603ab3c49b7fdfcf19c439c1a30668164f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Apr 2015 15:28:31 -0600 Subject: Everything works, it could use more stuff. --- src/map.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/map.h (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h new file mode 100644 index 0000000..eda5fd8 --- /dev/null +++ b/src/map.h @@ -0,0 +1,28 @@ +#ifndef MAP_H +#define MAP_H + +class Position; +class Cell; + +class Map +{ +public: + Map( const Position &rpMax ); + virtual ~Map(); + + Cell &operator[]( const Position &rpIdx ) const; + Cell &operator[]( const Position &rpIdx ); + + int getDims() const; + int getSize( int iDim ) const; + int getIndex( const Position &rpIdx ) const; + bool isInside( const Position &rpIdx ) const; + void connect( int iId1, int iId2 ); + +private: + int iDims; + int *aiSize; + Cell *acMap; +}; + +#endif -- cgit v1.2.3