X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Ffleet.h;h=770bf0652f4b46c060f57802116d222089d7e293;hb=1c8c7800411f2491d9be16c0f1515a91525f2e56;hp=0a0db411d35e263ed773e1a90f9e80aac65f0155;hpb=7b5ccf741883c34b2ac96afe460a3d0eda3701bb;p=hbs.git diff --git a/bs/fleet.h b/bs/fleet.h index 0a0db41..770bf06 100644 --- a/bs/fleet.h +++ b/bs/fleet.h @@ -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. @@ -247,6 +257,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 */