+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::addFleet(std::map<string, int> units, int tick = 0)
+{
+ for (map<string, int>::iterator i = units.begin(); i != units.end(); ++i)
+ addFleet(i->first, i->second, tick);
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+int Fleet::stays() const
+{
+ return m_iStays;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::setStays(int ticks)
+{
+ m_iStays = ticks;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::calculateLostStealships(string unittype, std::map<std::string, int> stolen, int tick = 1)
+{
+ int stealscore = 0;
+ for (map<string, int>::iterator i = stolen.begin(); i != stolen.end(); ++i)
+ {
+ stealscore += stolen[i->first] * (s_Units[i->first].totRes() / 10.0);
+ }