Project

General

Profile

« Previous | Next » 

Revision 15d1f6ad

Added by Leszek Koltunski about 1 year ago

creation of PruningTables.

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebasesAbstract.java
41 41
  private final boolean[][] mRotatable;
42 42
  private final int mScalingFactor;
43 43

  
44
  private Tablebase mTablebase;
45 44
  private int[][] mQuatMult;
46 45
  private boolean mInitialized;
47 46

  
47
  Tablebase mTablebase;
48

  
48 49
  private static final float[] mTmp = new float[4];
49 50

  
50 51
///////////////////////////////////////////////////////////////////////////////////////////////////
......
60 61
  abstract int getSize();
61 62
  abstract int[] getQuats(int index);
62 63
  abstract int getIndex(int[] quats);
63
  abstract int[] getPruningLevels();
64 64

  
65 65
///////////////////////////////////////////////////////////////////////////////////////////////////
66 66

  
......
315 315

  
316 316
///////////////////////////////////////////////////////////////////////////////////////////////////
317 317

  
318
  public byte[] getPacked()
318
  public byte[][] getPacked()
319 319
    {
320
    return mTablebase.getPacked();
320
    if( !mInitialized ) createTablebase(-1);
321
    byte[] data = mTablebase.getPacked();
322

  
323
    return new byte[][] { data };
321 324
    }
322 325

  
323 326
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff