]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.h
Started the work to split up the pods better..
[hbs.git] / bs / fleet.h
index 0a0db411d35e263ed773e1a90f9e80aac65f0155..448d4de66bbfdadbb2634f0e3c96e3c4a9fd7b3b 100644 (file)
@@ -120,7 +120,17 @@ public:
         * \return returns the number of units that params specifies.
         */
        int freeFleet(std:: string unittype, int tick = 0);
+
+       /** This function is used to see how many ships of a specific type got
+        * blocked at a specific tick.
+        * \param unittype the name of the unittype
+        * \param tick what tick you want to look at
+        * \return the number of ships that got blocked at the specified tick.
+        */
+       int blockedFleet(std::string unittype, int tick = 0);
        
+       void setBlockedFleet(std::string unittype, int number, int tick = 0);
+
        /** This function takes the vector with fleets and adds all their units of the
         * specific tick to the current fleet's first tick. Main usage is for battle
         * calculations.
@@ -154,6 +164,8 @@ public:
         */
        void distributeCappedRoids(std::vector<Fleet*> fleets, int tick = 0);
 
+       void addPodsForLostRoids(int tick = 1);
+
        /** Checks through the vector with fleets to see who's in time for the
         * specified tick and staying long enough so they're not too early.
         * \param fleets a vector with Fleet pointers to use for the calculations
@@ -247,6 +259,7 @@ public:
        void printFleet();
 
        //static functions
+       //
        /** This function is used to set the different races used.
         * \param races a Simple RaceList which holds all the info
         */