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

Method generatePlane

MicropolisCore/src/MicropolisEngine/src/sprite.cpp:1980–1987  ·  view source on GitHub ↗

* Ensure an airplane 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

1978 * @param pos Start position in map coordinates.
1979 */
1980void Micropolis::generatePlane(const Position &pos)
1981{
1982 if (getSprite(SPRITE_AIRPLANE) != NULL) {
1983 return;
1984 }
1985
1986 makeSprite(SPRITE_AIRPLANE, (pos.posX <<4) + 48, (pos.posY <<4) + 12);
1987}
1988
1989
1990/** Ensure a tornado sprite exists. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected