/*_________________________________________________

___________________________________________________
preprocessor*/
#include "map.hpp"

#include <assert.h>

/*_________________________________________________
map method*/

//constructor
map::map(const char * choice):base()
{
    _map = choice;
}

//return property from grid at position
char map::getAt (int col, int row)
{
    assert(col>=0 && col<4 && row>=0 && row<4);
    return _map[col+row*4];
}

//get name from grid at position
char map::getName(int col, int row)
{
    return '~';
}
