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

Method generateCopter

MicropolisCore/src/MicropolisEngine/src/sprite.cpp:1964–1971  ·  view source on GitHub ↗

* Ensure a helicopter sprite exists. * * If it does not exist, create one at the given coordinates. * @param pos Start position in map coordinates. */

Source from the content-addressed store, hash-verified

1962 * @param pos Start position in map coordinates.
1963 */
1964void Micropolis::generateCopter(const Position &pos)
1965{
1966 if (getSprite(SPRITE_HELICOPTER) != NULL) {
1967 return;
1968 }
1969
1970 makeSprite(SPRITE_HELICOPTER, (pos.posX << 4), (pos.posY << 4) + 30);
1971}
1972
1973
1974/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected