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

Method makeMonsterAt

MicropolisCore/src/MicropolisEngine/src/sprite.cpp:1951–1955  ·  view source on GitHub ↗

* Start a new monster sprite at the given map tile. * @param x X coordinate in map coordinate. * @param y Y coordinate in map coordinate. */

Source from the content-addressed store, hash-verified

1949 * @param y Y coordinate in map coordinate.
1950 */
1951void Micropolis::makeMonsterAt(int x, int y)
1952{
1953 makeSprite(SPRITE_MONSTER, (x << 4) + 48, (y << 4));
1954 sendMessage(MESSAGE_MONSTER_SIGHTED, x + 5, y, true, true);
1955}
1956
1957
1958/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected