engine/maps/source/MapUtils.cpp
// Add any messages after moving to a particular tile:
// - Should a message be displayed about the tile automatically? (staircases, etc)
//       If so, add it.
// - Are there any items on the tile?
//       If so, add the appropriate message.
Add any messages after moving to a particular tile:
Should a message be displayed about the tile automatically. (staircases, etc)
If so, add it.
Are there any items on the tile.
If so, add the appropriate message.
Add any messages after moving to a particular tile : Should a message be displayed about the tile automatically . ( staircases etc ) If so add it . Are there any items on the tile . If so add the appropriate message .
void MapUtils::add_tile_related_messages(CreaturePtr creature, TilePtr tile)
{
  bool tile_message_added = add_message_about_tile_if_necessary(creature, tile);
  bool item_message_added = add_message_about_items_on_tile_if_necessary(creature, tile);
  if (tile_message_added || item_message_added)
  {
    IMessageManager& manager = MM::instance(MessageTransmit::SELF, creature, creature && creature->get_is_player());
    manager.send();
  }
}
void MapUtils :: add_tile_related_messages ( CreaturePtr creature , TilePtr tile ) { bool tile_message_added = add_message_about_tile_if_necessary ( creature , tile ) ; bool item_message_added = add_message_about_items_on_tile_if_necessary ( creature , tile ) ; if ( tile_message_added || item_message_added ) { IMessageManager & manager = MM :: instance ( MessageTransmit :: SELF , creature , creature && creature -> get_is_player ( ) ) ; manager . send ( ) ; } }
Add any messages after moving to a particular tile:
 Should a message be displayed about the tile automatically?
Add any messages after moving to a particular tile : Should a message be displayed about the tile automatically?