Project

General

Profile

« Previous | Next » 

Revision 7f7fff03

Added by Leszek Koltunski 26 days ago

We no longer distinglish between the different shapes on the basis of number of puzzle walls as there are now the Octahedron and the Barrel both with 8. Now we do it properly, on the basis of the 'shape' part of object's category.

View differences:

src/main/java/org/distorted/objects/RubikObjectCategoriesShape.java
95 95

  
96 96
    switch(shape)
97 97
      {
98
      case CATEGORY_SHAPE_HEX: int axis  = (cat & 0x3);
98
      case CATEGORY_SHAPE_HEX: int axis = (cat & 0x3);
99 99
                                    if( axis==CATEGORY_AXIS_FACE>>3 ) return R.drawable.shape_hex_face;
100 100
                               else if( axis==CATEGORY_AXIS_CORN>>3 ) return R.drawable.shape_hex_corn;
101 101
                               else if( axis==CATEGORY_AXIS_EDGE>>3 ) return R.drawable.shape_hex_edge;

Also available in: Unified diff