return false;
}
+bool Map::isValid(int x, int y)
+{
+ if (x >= 0 && y >= 0 && x < MAPWIDTH && y < MAPHEIGHT)
+ return true;
+
+ return false;
+}
+
bool Map::isSolid(int x, int y)
{
+ if (!isValid(x, y))
+ return false;
+
if ((data[x][y] >= MAP_BREAKABLE) && (data[x][y] < MAP_DECORATION))
{
return true;
bool Map::isBreakable(int x, int y)
{
+ if (!isValid(x, y))
+ return false;
+
if ((data[x][y] >= MAP_BREAKABLE) && (data[x][y] <= MAP_BREAKABLE2))
{
return true;
bool Map::isNoReset(int x, int y)
{
+ if (!isValid(x, y))
+ return false;
+
if ((data[x][y] >= MAP_NORESET) && (data[x][y] < MAP_DECORATION))
{
return true;
bool Map::isLiquid(int x, int y)
{
+ if (!isValid(x, y))
+ return false;
+
if (data[x][y] == 0)
{
return false;
bool Map::isTopLayer(int x, int y)
{
+ if (!isValid(x, y))
+ return false;
+
if (data[x][y] >= MAP_TOPLAYER)
{
return true;
void destroy();
bool isPracticeMission();
+ bool isValid(int x, int y);
bool isSolid(int x, int y);
bool isBreakable(int x, int y);
bool isNoReset(int x, int y);