]> ruin.nu Git - hbs.git/blobdiff - bs/planet.h
now shows the lost score for the planet and the capping each tick
[hbs.git] / bs / planet.h
index 486bd60f50191fe185af5e34132bf51ab34e5b63..093c7f106affe4b52f40f352d5c44bf809e507ef 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
@@ -101,6 +104,7 @@ protected:
        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);
 
        std::vector <unsigned> m_Score;
+       std::vector <float> m_Capping;
        RoidList m_Roids;
        
 };