X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fplanet.h;fp=bs%2Fplanet.h;h=ccb2ee40f4b5bb7a18ff3ac38bd5699be8680a0b;hb=33b6dc7ca95a05c26a78879413395c1588066b77;hp=f98d7234c74e5bdf30c07ae646f68be5c1beb268;hpb=bf9477417304837c7caa6fac90de3eecb5a9dc43;p=hbs.git diff --git a/bs/planet.h b/bs/planet.h index f98d723..ccb2ee4 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -20,6 +20,8 @@ #include "fleet.h" +typedef std::map RoidList; + /**This class is the implementation of a planet. * * Yes I know.. In real life you wouldn't call a planet a fleet, but this isn't @@ -32,8 +34,15 @@ class Planet : public Fleet { public: Planet(); - ~Planet(); - unsigned score(); + virtual ~Planet(); + + unsigned score(int tick = 0); + void setScore(unsigned i); + +protected: + unsigned m_iScore; + RoidList m_Roids; + }; #endif