void CHARACTER::SetProtectTime(const std::string& flagname, int value)
{
itertype(m_protection_Time) it = m_protection_Time.find(flagname);
if (it != m_protection_Time.end())
it->second = value;
else
m_protection_Time.insert(make_pair(flagname, value));
}
int CHARACTER::GetProtectTime(const std::string& flagname) const
{
itertype(m_protection_Time) it = m_protection_Time.find(flagname);
if (it != m_protection_Time.end())
return it->second;
return 0;
}