コード例 #1
0
 /*    */ public Factory(int stages, int variants, int num, boolean rev) /*    */ {
   /* 39 */ Resource res = Utils.myres(getClass());
   /* 40 */ this.neg = ((Resource.Neg) res.layer(Resource.negc));
   /* 41 */ this.num = num;
   /* 42 */ this.strands = new Tex[stages][variants];
   /* 43 */ if (rev) {
     /* 44 */ for (Resource.Image img : res.layers(Resource.imgc))
       /* 45 */ if (img.id != -1)
         /* 46 */ this.strands[(img.id / variants)][(img.id % variants)] = img.tex();
     /*    */ }
   /*    */ else
     /* 49 */ for (Resource.Image img : res.layers(Resource.imgc))
       /* 50 */ if (img.id != -1)
         /* 51 */ this.strands[(img.id % stages)][(img.id / stages)] = img.tex();
   /*    */ }
 public Factory(int stages, int variants, int num, boolean rev) {
   Resource res = Utils.myres(this.getClass());
   this.neg = res.layer(Resource.negc);
   this.num = num;
   strands = new Tex[stages][variants];
   if (rev) {
     for (Resource.Image img : res.layers(Resource.imgc)) {
       if (img.id != -1) strands[img.id / variants][img.id % variants] = img.tex();
     }
   } else {
     for (Resource.Image img : res.layers(Resource.imgc)) {
       if (img.id != -1) strands[img.id % stages][img.id / stages] = img.tex();
     }
   }
 }