]> ruin.nu Git - hbs.git/blobdiff - bs/planet.h
The work on the combat algorithm is going forward, nothing worth compiling yet though.
[hbs.git] / bs / planet.h
index e59007ceebbc46c307d78cc84d96122deb092203..a19a858c0e032ad4654a8939adf9f9dbd9b752fb 100644 (file)
@@ -28,6 +28,9 @@ typedef std::map<std::string, std::vector<int> > 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
   */
 
@@ -45,6 +48,8 @@ public:
        void runBattle(std::vector<Fleet*> friendly, std::vector<Fleet*> hostile);
 
 protected:
+       void calcOneTick(Planet* friendly, Fleet* Hostile);
+
        unsigned m_iScore;
        RoidList m_Roids;