]> ruin.nu Git - hbs.git/blobdiff - bs/planet.h
Started the work to split up the pods better..
[hbs.git] / bs / planet.h
index 486bd60f50191fe185af5e34132bf51ab34e5b63..95b38936f0ad09da634ecf38c778bbccc188b541 100644 (file)
@@ -87,6 +87,9 @@ public:
 
        void calculateScoreLoss(std::vector<Fleet*> friendly, int tick = 1);
 
+       float capping(int tick = 0);
+       void setCapping(float capping, int tick = 0);
+
 protected:
        /** This function is used to start the calculations of a single tick of the
         * battle on the current planet. It's protected because it's not really meant
@@ -98,9 +101,10 @@ protected:
         * \param stealhostile a cointainer used to store all the stole units the 
         * hostile side took this tick.
         */
-       void calcOneTick(Planet* friendly, Fleet* hostile, std::map<std::string, std::map<std::string, int> >& stealfriendly, std::map<std::string, std::map<std::string, int> >&  stealhostile, int tick = 0);
+       void calcOneTick(Planet* friendly, Fleet* hostile, std::map<std::string, std::map<std::string, int> >& stealfriendly, std::map<std::string, std::map<std::string, int> >&  stealhostile, int tick = 1);
 
        std::vector <unsigned> m_Score;
+       std::vector <float> m_Capping;
        RoidList m_Roids;
        
 };