#pragma once
#ifndef _CITY
#define _CITY

#define W 6
#define H 6
#include "map.h"

//blob and base 64
#define BASE64(_BLOB) (_BLOB < 26 ? _BLOB+65 : (_BLOB < 52 ? _BLOB+97-26 : (_BLOB < 62 ? _BLOB+48-52 : (_BLOB==62 ? 43 : (_BLOB==63 ? 47 : -1)))))
#define BLOB64(_BASE64) (_BASE64==43 ? 62 : (_BASE64==47 ? 63 : (_BASE64>96 ? _BASE64-96+25 : (_BASE64>64 ? _BASE64-65: (_BASE64>30 ? _BASE64-48+52: -1)))))

//blob ville
#define BUILDING(_BLOB) (_BLOB & 15)
#define TERRAIN(_BLOB) (_BLOB >> 4)
#define BLOB(_BUILDING, _TERRAIN) (_BUILDING | (_TERRAIN << 4))

//building macros enum
#define VACANT 0,
#define RESIDENTIAL 1,
#define COMMERCIAL 2,
#define INDUSTRIAL 3,
#define TRANSPORTATION 4,

//terrain macros enum
#define WATER 0
#define PLAIN 1
#define HILL 2
#define FOREST 3




#endif
