Miscellany
public cpp v1 · immutable BCaseVector cases = map->Cases(); int h = 100; int H = 120; int w = 100; int tW = map->Width(); int tH = map->Height(); int x = 0; int y = (tW-1) * h/2; int bx = x; int by = y; Debug(W_DEBUG, "Start: TW=%d, tH=%d, x=%d, y=%d", tW, tH, x, y); for(BCaseVector::iterator casi = cases.begin(); casi != cases.end(); ++casi) if(*casi) { dynamic_cast<ECase*>(*casi)->Image()->set(X() + x, Y() + y); Debug(W_DEBUG, "x=%d, y=%d", x, y); if((*casi)->X() < (map->Width()-1)) { x = x + w/2; y = y - h/2; } else { x = bx + w/2; y = by + h/2; bx = x; by = y; } }