Exemple #1
0
void TGApp::riverOverlay()
{
	for_each(world->rivers.begin(), world->rivers.end(), [&] (pair<pair<int,int>, mRiver*> pr)
	{
		MapRegion* r1 = world->regions[pr.first.first];
		MapRegion* r2 = world->regions[pr.first.second];
		ScreenLine* s = new ScreenLine(r1->getLocation(), r2->getLocation());
		s->setLineWidth(3);
		s->setColor(.1,0.,1,1);
		rvOver.push_back(s);
		screen->addChild(s);
	});
}