]> ruin.nu Git - hbs.git/blobdiff - bs/planet.h
adding, removing and chaning fleets now works.
[hbs.git] / bs / planet.h
index 5e2b13a40f6e6fc53a3427fa0d55b73ef188b643..e59007ceebbc46c307d78cc84d96122deb092203 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "fleet.h"
 
-typedef std::map<std::string, int> RoidList;
+typedef std::map<std::string, std::vector<int> > RoidList;
 
 /**This class is the implementation of a planet.
  *
@@ -42,6 +42,8 @@ public:
        int roids(std::string type, int tick = 0) const;
        void setRoids(std::string type, int number);
 
+       void runBattle(std::vector<Fleet*> friendly, std::vector<Fleet*> hostile);
+
 protected:
        unsigned m_iScore;
        RoidList m_Roids;