MCPcopy Create free account
hub / github.com/SimHacker/micropolis / drawStadium

Method drawStadium

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:1610–1624  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1608 * @todo Merge with zonePlop()-like function.
1609 */
1610void Micropolis::drawStadium(const Position &center, 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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected