+ m_Resources = res;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+std::map<std::string, int> UnitType::resources()
+{
+ return m_Resources;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+int UnitType::totRes() const
+{
+ int totres = 0;
+ for (map<string, int>::const_iterator i = m_Resources.begin(); i != m_Resources.end(); ++i)
+ totres += i->second;
+ return totres;