#include "fleet.h"
typedef std::map<std::string, std::vector<int> > RoidList;
+typedef std::map<int, std::map<int, std::map<std::string, std::map<std::string, std::map<std::string, int> > > > > ReportList;
/**This class is the implementation of a planet.
*
void calculateScoreLoss(std::vector<Fleet*> friendly, int tick = 1);
+ float capping(int tick = 0);
+ void setCapping(float capping, int tick = 0);
+
+ ReportList report() const;
+
protected:
/** This function is used to start the calculations of a single tick of the
* battle on the current planet. It's protected because it's not really meant
* \param stealhostile a cointainer used to store all the stole units the
* hostile side took this tick.
*/
- void calcOneTick(Planet* friendly, Fleet* hostile, std::map<std::string, std::map<std::string, int> >& stealfriendly, std::map<std::string, std::map<std::string, int> >& stealhostile, int tick = 0);
+ void calcOneTick(Planet* friendly, Fleet* hostile, std::map<std::string, std::map<std::string, int> >& stealfriendly, std::map<std::string, std::map<std::string, int> >& stealhostile, int tick = 1);
std::vector <unsigned> m_Score;
+ std::vector <float> m_Capping;
RoidList m_Roids;
+ ReportList m_Report;
};