Planet::Planet()
{
m_sRace = "Planet";
+ m_iStays = -1;
}
Planet::~Planet(){
map<string, int> pods;
+ //FIXME: Need to change this and allow multiple shiptypes with the same initiative.
map<int, string> unitsinit; // order units after their ininitiative
for (UnitList::iterator i = s_Units.begin(); i != s_Units.end(); ++i)
unitsinit[i->second.initiative()] = i->first;
{
hostiletemp->takeShoot(unittype, friendly->freeFleet(unittype, 1), stealfriendly[unittype]);
friendlytemp->takeShoot(unittype, hostile->freeFleet(unittype, 1), stealhostile[unittype]);
+
+ friendlytemp->calculateLostStealships(unittype, stealfriendly[unittype], 1);
+ hostiletemp->calculateLostStealships(unittype, stealhostile[unittype], 1);
}
else
{
if (s_Units[unittype].type() == "Pod")
{
+ //FIXME: Prolly need to recode the whole capping section for r7, due to multiple pods thingy
cerr << "Capping is: " << capping(tick) << endl;
if (capping(tick) > 0)