+
+//////////////////////////////////////////////////////////////////////////
+//
+int Fleet::freePodGuns(int tick)
+{
+ int guns = 0;
+ for (FleetList::const_iterator i = m_Fleet.begin(); i != m_Fleet.end(); ++i)
+ {
+ if (s_Units[i->first].type() == "Pod")
+ {
+ guns += freeFleet(i->first, tick) * s_Units[i->first].guns();
+ }
+ }
+ guns -= usedPodGuns(tick);
+ return guns;
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+int Fleet::usedPodGuns(int tick) const
+{
+ int ticks = m_UsedPodGuns.size();
+
+ if (ticks == 0)
+ return 0;
+
+ if (tick < 0)
+ return m_UsedPodGuns[0];
+
+ --ticks;
+
+ if (ticks < tick)
+ return m_UsedPodGuns[ticks];
+
+ return m_UsedPodGuns[tick];
+
+}
+
+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::usePodGuns(int tick, int guns)
+{
+ int ticks = m_UsedPodGuns.size();
+
+ for (int i = ticks; i <= tick; ++i)
+ {
+ m_UsedPodGuns.push_back(0);
+ }
+ m_UsedPodGuns[tick] += guns;
+}