fixed some bugs (clear path on map, ASCII game print;-)
This commit is contained in:
15
map.cpp
15
map.cpp
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user