X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fplanet.h;h=95b38936f0ad09da634ecf38c778bbccc188b541;hb=6220f28edd1dacabf49523fc60d01a3b5bfb4b8f;hp=486bd60f50191fe185af5e34132bf51ab34e5b63;hpb=bb4169deef42f91b6afa4c4561f9339fba040f01;p=hbs.git diff --git a/bs/planet.h b/bs/planet.h index 486bd60..95b3893 100644 --- a/bs/planet.h +++ b/bs/planet.h @@ -87,6 +87,9 @@ public: void calculateScoreLoss(std::vector friendly, int tick = 1); + float capping(int tick = 0); + void setCapping(float capping, int tick = 0); + 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,9 +101,10 @@ 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; };