world/source/Mortuary.cpp
// Get the number of a particular type of creature that have been killed.
Get the number of a particular type of creature that have been killed.
Get the number of a particular type of creature that have been killed .
int Mortuary::get_num_creature_killed(const string& creature_id) const
{
  uint num_killed = 0;
  MortuaryCountMap::const_iterator m_it = creatures_killed.find(creature_id);
  if (m_it != creatures_killed.end())
  {
    num_killed = m_it->second.count;
  }
  return static_cast<int>(num_killed);
}
int Mortuary :: get_num_creature_killed ( const string & creature_id ) const { uint num_killed = 0 ; MortuaryCountMap :: const_iterator m_it = creatures_killed . find ( creature_id ) ; if ( m_it != creatures_killed . end ( ) ) { num_killed = m_it -> second . count ; } return static_cast < int > ( num_killed ) ; }
Get the number of a particular type of creature that have been killed.
Get the number of a particular type of creature that have been killed .