]> ruin.nu Git - hbs.git/blobdiff - bs/planet.h
A few more bugs killed.. still a few left before 0.1 release..
[hbs.git] / bs / planet.h
index 2d513618342c26c44253178712b3bea0cfabbcd7..e5c173e0cda880cf44b39c4e9134dcc6ddcbb39a 100644 (file)
@@ -43,12 +43,13 @@ public:
        void setPlanetScore(unsigned i);
 
        int roids(std::string type, int tick = 0) const;
-       void setRoids(std::string type, int number);
+       void setRoids(std::string type, int number, int tick = 0);
+       void takeRoids(std::string type, int number, int tick = 0);
 
        void runBattle(std::vector<Fleet*> friendly, std::vector<Fleet*> hostile);
 
 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 );
+       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);
 
        unsigned m_iScore;
        RoidList m_Roids;