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

Method sendMessage

MicropolisCore/src/MicropolisEngine/src/message.cpp:380–388  ·  view source on GitHub ↗

* Send the user a message of an event that happens at a particular position * in the city. * @param mesgNum Message number of the message to display. * @param x X coordinate of the position of the event. * @param y Y coordinate of the position of the event. * @param picture Flag that is true if a picture should be shown. * @param important Flag that is true if the messa

Source from the content-addressed store, hash-verified

378 * @param important Flag that is true if the message is important.
379 */
380void Micropolis::sendMessage(short mesgNum, short x, short y, bool picture, bool important)
381{
382 callback("update", "sdddbb", "message",
383 (int)mesgNum,
384 (int)x,
385 (int)y,
386 picture ? 1 : 0,
387 important ? 1 : 0);
388}
389
390
391/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected