X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Ffleet.h;fp=bs%2Ffleet.h;h=93bdee74a247d04ad4c75db9b173a515ce8707aa;hp=448d4de66bbfdadbb2634f0e3c96e3c4a9fd7b3b;hb=217cda78005f993fd6b2e575d4abd97c93cec655;hpb=45577c33bdaab669fd787a0411996d506307708b diff --git a/bs/fleet.h b/bs/fleet.h index 448d4de..93bdee7 100644 --- a/bs/fleet.h +++ b/bs/fleet.h @@ -106,6 +106,11 @@ public: * other is hardly used other than inside the engine. */ void setFleet(std::string unittype, int number, int tick = 0); + + void addFleet(std::string unittype, int number, int tick = 0); + + void addFleet(std::map units, int tick = 0); + /**Returns the numbers of units fo a specific type at a specific tick. * \param unittype The shipname, as a std string * \param tick The tick you want to look at, tick 0 (before battle) is default @@ -164,8 +169,6 @@ public: */ void distributeCappedRoids(std::vector 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 @@ -223,6 +226,7 @@ public: */ int resource(std::string type, int tick = 0)const; + void resetResources(); /** This is a little more advanced function. It makes a a number of units * of a specific unittype shoot at the current fleet and calculates the * losses.