]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.h
started to work on the battle report.. almost there =)
[hbs.git] / bs / fleet.h
index f632093bd51c8e766c2cd00ecc40f3b85a4e0424..9aea01cc6b3a4ab744118eec5b36830f69b7eb52 100644 (file)
@@ -262,7 +262,7 @@ public:
         * very similar stuff in both the take* functions.
         * \sa takeShoot
         */
-       void takeEMP(std::string unittype, int number);
+       void takeEMP(std::string unittype, int number, std::map<std::string, int>& hitunits);
 
        void calculateLostStealships(std::string unittype, std::map<std::string, int> stolen, int tick = 1);
 
@@ -275,6 +275,13 @@ public:
        void printFleet();
 
        void resetTicks();
+
+       int freePodGuns(int tick = 0);
+
+       int usedPodGuns(int tick = 0) const;
+
+       void usePodGuns(int tick = 0, int guns = 1);
+
        //static functions
        //
        /** This function is used to set the different races used.
@@ -301,14 +308,15 @@ public:
 protected:
 
 
-       std::string  m_sName;
-       std::string      m_sRace;
-       int          m_iETA;
-       FleetList    m_Fleet;
-       FleetList    m_BlockedFleet;
-       ResourceList m_Resources;
-       ArmorList        m_Armor;
-       int          m_iStays;
+       std::string      m_sName;
+       std::string          m_sRace;
+       int              m_iETA;
+       FleetList        m_Fleet;
+       FleetList        m_BlockedFleet;
+       ResourceList     m_Resources;
+       ArmorList            m_Armor;
+       int              m_iStays;
+       std::vector<int> m_UsedPodGuns;