X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fplanet.h;h=e59007ceebbc46c307d78cc84d96122deb092203;hb=c2dd8856c3d97667953a0b73403b5e5cade5ce9b;hp=ccb2ee40f4b5bb7a18ff3ac38bd5699be8680a0b;hpb=33b6dc7ca95a05c26a78879413395c1588066b77;p=hbs.git diff --git a/bs/planet.h b/bs/planet.h index ccb2ee4..e59007c 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -20,7 +20,7 @@ #include "fleet.h" -typedef std::map RoidList; +typedef std::map > RoidList; /**This class is the implementation of a planet. * @@ -36,8 +36,13 @@ public: Planet(); virtual ~Planet(); - unsigned score(int tick = 0); - void setScore(unsigned i); + unsigned planetScore() const; + void setPlanetScore(unsigned i); + + int roids(std::string type, int tick = 0) const; + void setRoids(std::string type, int number); + + void runBattle(std::vector friendly, std::vector hostile); protected: unsigned m_iScore;