]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.h
BSDoc should now create a friendly and a hostile vector for the battle simulation...
[hbs.git] / bs / fleet.h
index c156545971078d921634f96fddecc7c41dd87795..e27c1bf834b88a1c351694f70401aa76be633439 100644 (file)
@@ -28,8 +28,8 @@
 typedef std::map<std::string, std::vector<int> > FleetList;
 typedef std::map<std::string, UnitType>        UnitList;
 typedef std::map<std::string, std::vector<int> > RaceList;
-//!This is the engine for the whole battlesystem.
-/**This is the engine for the whole battlesystem.
+//! An abstraction of a fleet and the engine for the battle simulation.
+/**This class and it's derivates is  the engine for the whole battlesystem.
   *    One of the few parts that I plan make fully portable.
   *\todo LOTS (I think ;)
   *@author Michael Andreen
@@ -85,8 +85,11 @@ public:
         * \param tick tells the function what tick you want the score from. 0 is 
         * initial score before the fleet has landed.
         */
-       virtual unsigned score(int tick = 0) const;
+       unsigned score(int tick = 0) const;
 
+       void setFleet(std::string unittype, int number);
+       int      fleet(std::string unittype, int tick = 0);
+       
        static void setRaces(RaceList& races);
        static void setUnits(UnitList& units);