@Override public void loadImages() { if (redImages == null) redImages = Assets.loadImages(imageFormatInfo.getRedId(), 0, 0, 1, 1); if (orangeImages == null) orangeImages = Assets.loadImages(imageFormatInfo.getOrangeId(), 0, 0, 1, 1); if (blueImages == null) blueImages = Assets.loadImages(imageFormatInfo.getBlueId(), 0, 0, 1, 1); if (greenImages == null) greenImages = Assets.loadImages(imageFormatInfo.getGreenId(), 0, 0, 1, 1); if (whiteImages == null) whiteImages = Assets.loadImages(imageFormatInfo.getWhiteId(), 0, 0, 1, 1); }
public static Image[] getRedImages() { if (redImages == null) { redImages = Assets.loadImages(imageFormatInfo.getRedId(), 3, 4, 0, 0, 1, 1); } return redImages; }