X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Fplanet.h;h=e5c173e0cda880cf44b39c4e9134dcc6ddcbb39a;hp=2d513618342c26c44253178712b3bea0cfabbcd7;hb=8589e08e508806885b737682ed25b6f711d0fdee;hpb=9f0513b48fbafa876159812f638019c6b47eae33 diff --git a/bs/planet.h b/bs/planet.h index 2d51361..e5c173e 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -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 friendly, std::vector hostile); protected: - void calcOneTick(Planet* friendly, Fleet* Hostile, std::map >& stealfriendly, std::map >& stealhostile ); + void calcOneTick(Planet* friendly, Fleet* Hostile, std::map >& stealfriendly, std::map >& stealhostile, int tick = 0); unsigned m_iScore; RoidList m_Roids;