Project

General

Profile

« Previous | Next » 

Revision d464f54f

Added by Leszek Koltunski over 2 years ago

Remove statics from the Dino classes.

View differences:

src/main/java/org/distorted/objects/TwistyDino6.java
32 32

  
33 33
public class TwistyDino6 extends TwistyDino
34 34
{
35
  private static final int[] mFaceMap = {4,2, 0,4, 4,3, 1,4,
36
                                         2,0, 3,0, 3,1, 2,1,
37
                                         5,2, 0,5, 5,3, 1,5 };
35
  private int[] mFaceMap;
38 36

  
39 37
///////////////////////////////////////////////////////////////////////////////////////////////////
40 38

  
......
68 66

  
69 67
  int getFaceColor(int cubit, int cubitface, int size)
70 68
    {
69
    if( mFaceMap==null )
70
      {
71
      mFaceMap = new int[] { 4,2, 0,4, 4,3, 1,4, 2,0, 3,0, 3,1, 2,1, 5,2, 0,5, 5,3, 1,5 };
72
      }
73

  
71 74
    switch(cubitface)
72 75
      {
73 76
      case 0 : return mFaceMap[2*cubit];
74 77
      case 1 : return mFaceMap[2*cubit+1];
75
      default: return NUM_FACES;
78
      default: return NUM_TEXTURES;
76 79
      }
77 80
    }
78 81

  

Also available in: Unified diff