X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fplanet.h;h=a19a858c0e032ad4654a8939adf9f9dbd9b752fb;hb=3ae63f013b2ac281d17acec43bc054a132861d35;hp=1fd9109c2cf9e8ba936ce1f12630ec64cad8ae6d;hpb=236fcf8db0fa64f8acd0a1eb81aa3ce5f2bfb3e8;p=hbs.git diff --git a/bs/planet.h b/bs/planet.h index 1fd9109..a19a858 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -28,6 +28,9 @@ typedef std::map > RoidList; * real life, it's a game engine, and in this engine a planet got all the * attributes that a fleet got + some additions, so I think the inheritance * is fully legal from a OOP standpoint. If it isn't, then please correct me ;) + * + * This class is doing the actual battle simulation (since battles without + * planets aren't available in this game). *@author Michael Andreen */ @@ -42,7 +45,11 @@ public: 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: + void calcOneTick(Planet* friendly, Fleet* Hostile); + unsigned m_iScore; RoidList m_Roids;