private void printStruct(Graphics2D g2d, int totalArmor) { int posY = 369; int posX = 270; int[] topColumn = new int[] {posY, posX}; int[] pipShift = new int[] {6, 6}; Vector<int[]> pipPlotter = new Vector<int[]>(132); for (int pos = 1; pos <= 32; pos++) { pipPlotter.add(new int[] {topColumn[0], topColumn[1]}); topColumn[0] += pipShift[0]; if ((pos % 8) == 0) { topColumn[1] += pipShift[1]; pipShift[0] *= -1; topColumn[0] += pipShift[0]; } } int pipSpace = (int) Math.floor(32 / totalArmor); for (int pos = 0; pos < 32; pos += pipSpace) { ImageHelperAero.drawAeroISPip(g2d, pipPlotter.get(pos)[0], pipPlotter.get(pos)[1]); if (--totalArmor <= 0) { return; } } }