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