Project

General

Profile

« Previous | Next » 

Revision 02d80fe6

Added by Leszek Koltunski over 2 years ago

progress with off-center objects.

View differences:

src/main/java/org/distorted/objectlib/main/ObjectPreRender.java
27 27
import org.distorted.library.main.DistortedScreen;
28 28
import org.distorted.library.message.EffectListener;
29 29

  
30
import org.distorted.library.type.Static3D;
30 31
import org.distorted.objectlib.helpers.ObjectLibInterface;
31 32
import org.distorted.objectlib.effects.BaseEffect;
32 33
import org.distorted.objectlib.effects.scramble.ScrambleEffect;
......
46 47
  private final BlockController mBlockController;
47 48
  private final ObjectLibInterface mInterface;
48 49
  private String mDebug;
50
  private Static3D mMove;
49 51

  
50 52
  private boolean mFinishRotation, mRemoveRotation, mRemovePatternRotation, mAddRotation,
51 53
                  mSetQuat, mChangeObject, mSolveObject, mScrambleObject,
......
85 87
    mNewObject = null;
86 88

  
87 89
    mDebug = "";
90
    mMove = new Static3D(0,0,0);
88 91

  
89 92
    mScreenWidth = 0;
90 93
    mScrambleObjectNum = 0;
......
313 316
    mSetQuat = true;
314 317
    }
315 318

  
319
///////////////////////////////////////////////////////////////////////////////////////////////////
320

  
321
  void setMove(Static3D move)
322
    {
323
    mMove = move;
324
    }
325

  
316 326
///////////////////////////////////////////////////////////////////////////////////////////////////
317 327
// INTERNAL API
318 328
///////////////////////////////////////////////////////////////////////////////////////////////////
......
329 339
    return mOldObject;
330 340
    }
331 341

  
342
///////////////////////////////////////////////////////////////////////////////////////////////////
343

  
344
  public Static3D getMove()
345
    {
346
    return mMove;
347
    }
348

  
332 349
///////////////////////////////////////////////////////////////////////////////////////////////////
333 350
// PUBLIC API
334 351
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff