engine/creatures/source/CreatureUtils.cpp
// Initialize the map of message SIDs.  Messages are shown when the creature
// (the player, realistically) transitions to a new state.
Initialize the map of message SIDs.  Messages are shown when the creature
(the player, realistically) transitions to a new state.
Initialize the map of message SIDs . Messages are shown when the creature ( the player realistically ) transitions to a new state .
void CreatureUtils::initialize_hunger_message_sid_map()
{
  hunger_message_sid_map.clear();
  hunger_message_sid_map = std::map<HungerLevel, std::string>{
    { HungerLevel::HUNGER_LEVEL_STUFFED, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_STUFFED },
    { HungerLevel::HUNGER_LEVEL_FULL, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_FULL },
    { HungerLevel::HUNGER_LEVEL_NORMAL, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_NORMAL },
    { HungerLevel::HUNGER_LEVEL_HUNGRY, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_HUNGRY },
    { HungerLevel::HUNGER_LEVEL_STARVING, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_STARVING },
    { HungerLevel::HUNGER_LEVEL_DYING, StatusAilmentTextKeys::STATUS_MESSAGE_HUNGER_DYING } };
}
void CreatureUtils :: initialize_hunger_message_sid_map ( ) { hunger_message_sid_map . clear ( ) ; hunger_message_sid_map = std :: map < HungerLevel , std :: string > { { HungerLevel :: HUNGER_LEVEL_STUFFED , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_STUFFED } , { HungerLevel :: HUNGER_LEVEL_FULL , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_FULL } , { HungerLevel :: HUNGER_LEVEL_NORMAL , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_NORMAL } , { HungerLevel :: HUNGER_LEVEL_HUNGRY , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_HUNGRY } , { HungerLevel :: HUNGER_LEVEL_STARVING , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_STARVING } , { HungerLevel :: HUNGER_LEVEL_DYING , StatusAilmentTextKeys :: STATUS_MESSAGE_HUNGER_DYING } } ; }
Initialize the map of message SIDs.
Initialize the map of message SIDs .