]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.h
a couple of bugs solved..
[hbs.git] / bs / fleet.h
index 770bf0652f4b46c060f57802116d222089d7e293..93bdee74a247d04ad4c75db9b173a515ce8707aa 100644 (file)
@@ -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<std::string, int> 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
@@ -221,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.