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;
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;
for (RoidList::iterator roid = m_Roids.begin(); roid != m_Roids.end(); ++roid)
{
int caproids = capping(tick) * roids(roid->first, tick - 1);
for (RoidList::iterator roid = m_Roids.begin(); roid != m_Roids.end(); ++roid)
{
int caproids = capping(tick) * roids(roid->first, tick - 1);
cerr << caproids << " roids stolen\n";
takeRoids(roid->first, caproids, tick);
cerr << caproids << " roids stolen\n";
takeRoids(roid->first, caproids, tick);
//FIXME: Going to move this to the distribute roids section instead.. Not really move, I'll keep this, but "regenerate" the pods in the distribute ships function.
hostiletemp->killFleet(unittype, caproids, 1);
pods[unittype] += caproids;
//int totroids = caproids + hostiletemp->resource(roid->first, 0);
//FIXME: Going to move this to the distribute roids section instead.. Not really move, I'll keep this, but "regenerate" the pods in the distribute ships function.
hostiletemp->killFleet(unittype, caproids, 1);
pods[unittype] += caproids;
//int totroids = caproids + hostiletemp->resource(roid->first, 0);