Revision 93743a22
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objectlib/main/ObjectPreRender.java | ||
---|---|---|
330 | 330 |
|
331 | 331 |
void rememberMove(int axis, int row, int angle) |
332 | 332 |
{ |
333 |
mDebug += ("(m "+axis+" "+(1<<row)+" "+angle+" "+(System.currentTimeMillis()-mScrambleEndTime)+")"); |
|
333 |
mDebug += (mNewObject==null ? "[null]" : mNewObject.reportState() ); |
|
334 |
mDebug += ("(m "+axis+" "+(1<<row)+" "+angle+" "+(System.currentTimeMillis()-mScrambleEndTime))+")"; |
|
334 | 335 |
} |
335 | 336 |
|
336 | 337 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
561 | 562 |
|
562 | 563 |
if( listener instanceof ScrambleEffect ) |
563 | 564 |
{ |
564 |
mDebug += ("(a "+axis+" "+rowBitmap+" "+angle+" "+(mAddRotationTime-mScrambleStartTime)+")"); |
|
565 |
mDebug += (mNewObject==null ? "[null]" : mNewObject.reportState() ); |
|
566 |
mDebug += ("(a "+axis+" "+rowBitmap+" "+angle+" "+(mAddRotationTime-mScrambleStartTime))+")"; |
|
565 | 567 |
} |
566 | 568 |
} |
567 | 569 |
} |
src/main/java/org/distorted/objectlib/main/TwistyObject.java | ||
---|---|---|
2005 | 2005 |
return mNumStickerTypes; |
2006 | 2006 |
} |
2007 | 2007 |
|
2008 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
2009 |
|
|
2010 |
public String reportState() |
|
2011 |
{ |
|
2012 |
StringBuilder builder = new StringBuilder(); |
|
2013 |
builder.append('['); |
|
2014 |
|
|
2015 |
for(int i=0; i<mNumCubits; i++ ) |
|
2016 |
{ |
|
2017 |
if( i>0 ) builder.append('.'); |
|
2018 |
builder.append(mCubits[i].mQuatIndex); |
|
2019 |
} |
|
2020 |
|
|
2021 |
builder.append(']'); |
|
2022 |
|
|
2023 |
return builder.toString(); |
|
2024 |
} |
|
2025 |
|
|
2008 | 2026 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
2009 | 2027 |
// this is here only so it can be overridden in TwistyJSON soo that we can get this from JSON. |
2010 | 2028 |
|
Also available in: Unified diff
More debugs for the case of impossible records.