* Draw a stadium (either full or empty). * @param center Center tile position of the stadium. * @param z Base tile value. * * @todo Merge with zonePlop()-like function. */
| 1608 | * @todo Merge with zonePlop()-like function. |
| 1609 | */ |
| 1610 | void Micropolis::drawStadium(const Position ¢er, MapTile z) |
| 1611 | { |
| 1612 | int x, y; |
| 1613 | |
| 1614 | z = z - 5; |
| 1615 | |
| 1616 | for (y = center.posY - 1; y < center.posY + 3; y++) { |
| 1617 | for (x = center.posX - 1; x < center.posX + 3; x++) { |
| 1618 | map[x][y] = z | BNCNBIT; |
| 1619 | z++; |
| 1620 | } |
| 1621 | } |
| 1622 | |
| 1623 | map[center.posX][center.posY] |= ZONEBIT | PWRBIT; |
| 1624 | } |
| 1625 | |
| 1626 | |
| 1627 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected