X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fplanet.h;h=78c00b94531305a2a144227f363b604b821b79fe;hb=HEAD;hp=486bd60f50191fe185af5e34132bf51ab34e5b63;hpb=bb4169deef42f91b6afa4c4561f9339fba040f01;p=hbs.git diff --git a/bs/planet.h b/bs/planet.h index 486bd60..78c00b9 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -21,6 +21,7 @@ #include "fleet.h" typedef std::map > RoidList; +typedef std::map > > > > ReportList; /**This class is the implementation of a planet. * @@ -87,6 +88,11 @@ public: void calculateScoreLoss(std::vector 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 @@ -98,10 +104,12 @@ protected: * \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 >& stealfriendly, std::map >& stealhostile, int tick = 0); + void calcOneTick(Planet* friendly, Fleet* hostile, std::map >& stealfriendly, std::map >& stealhostile, int tick = 1); std::vector m_Score; + std::vector m_Capping; RoidList m_Roids; + ReportList m_Report; };