void CCardRegion::InitCardCoords() { if(InternalStack.Empty()) return; int x = xCoord; int y = yCoord; int pos = 0; int it = 0; if(Attributes&CRD_3D) { for(VI vi = InternalStack.begin(); vi != InternalStack.end(); ++vi) { vi->SetCardLoc(x, y); if( !((it++)%4) ) pos++; x = (pos*2)+xCoord; y = pos+yCoord; } } else { for(VI vi = InternalStack.begin(); vi != InternalStack.end(); ++vi) { vi->SetCardLoc(x, y); x += xOffset; y += yOffset; } } }