fixed some bugs (clear path on map, ASCII game print;-)

This commit is contained in:
2010-07-30 01:56:37 +04:00
parent 5318650e91
commit 87455a622e
6 changed files with 21 additions and 6 deletions

15
map.cpp
View File

@@ -46,6 +46,17 @@ void Map::printMap()
}
void Map::removeAliensPath()
{
for (int i=0; i<Cells.size(); i++)
{
for (int j=0; j<Cells[i].size(); j++)
{
if (Cells[i][j] > 1000 && Cells[i][j] < 2000) Cells[i][j]=Cells[i][j]-1000;
}
}
}
bool Map::addTowerOnMap(int playerId, QPoint pos)
{
if (playerId < 0 || playerId > maxPlayers) return false;
@@ -237,8 +248,8 @@ int Map::WaveTrace(QPoint start, QPoint finish)
}
step++;
}
//qDebug() << "trace false";
qDebug() << TmpCells;
qDebug() << "trace false";
//qDebug() << TmpCells;
return -1;
}