Project

General

Profile

« Previous | Next » 

Revision ecf3d6e3

Added by Leszek Koltunski over 2 years ago

1) introduce possibility to move objects, i.e. display them not in the middle of the screen (not fully functional yet)
2) do away with unneeded any more interface 'EffectController' - since ObjectPreRender is the only implementation now.

View differences:

src/main/java/org/distorted/objectlib/main/ObjectPreRender.java
25 25
import android.content.SharedPreferences;
26 26

  
27 27
import org.distorted.library.main.DistortedScreen;
28
import org.distorted.library.message.EffectListener;
28 29

  
29 30
import org.distorted.objectlib.helpers.ObjectLibInterface;
30 31
import org.distorted.objectlib.effects.BaseEffect;
31
import org.distorted.objectlib.effects.EffectController;
32 32
import org.distorted.objectlib.effects.scramble.ScrambleEffect;
33 33
import org.distorted.objectlib.helpers.BlockController;
34 34
import org.distorted.objectlib.helpers.MovesFinished;
35 35

  
36 36
///////////////////////////////////////////////////////////////////////////////////////////////////
37 37

  
38
public class ObjectPreRender implements EffectController
38
public class ObjectPreRender implements EffectListener
39 39
  {
40 40
  private final WeakReference<Activity> mAct;
41 41
  private final ObjectControl mController;
......
104 104
    if( mOldObject!=null ) mOldObject.releaseResources();
105 105
    mOldObject = mNewObject;
106 106

  
107
    mNewObject = object.create( mController.getQuat(), mAct.get().getResources(), mScreenWidth);
107
    mNewObject = object.create( mController.getQuat(), mController.getMove(), mAct.get().getResources(), mScreenWidth);
108 108

  
109 109
    if( mNewObject!=null )
110 110
      {

Also available in: Unified diff