* Ensure an airplane sprite exists. * * If it does not exist, create one at the given coordinates. * @param pos Start position in map coordinates. */
| 1978 | * @param pos Start position in map coordinates. |
| 1979 | */ |
| 1980 | void 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. */ |
nothing calls this directly
no outgoing calls
no test coverage detected