Skip to content

Commit

Permalink
For #41. Interface the Gameboard for MainPanel.
Browse files Browse the repository at this point in the history
Require the Gameboard to have an updatePhysics() for MainThread.
Maybe not worthwhile; we'll see.
  • Loading branch information
ko committed Oct 27, 2013
1 parent 4b3d5e4 commit ed1c83d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/com/relurori/breakout/MainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.relurori.engine.graphics.shapes.meta.Collision;
import com.relurori.engine.graphics.shapes.meta.Intersection;
import com.relurori.engine.io.Joystick;
import com.relurori.engine.main.Gameboard;
import com.relurori.engine.main.MainThread;
import com.relurori.engine.network.NetworkThread;

Expand All @@ -43,7 +44,7 @@
import android.view.SurfaceView;
import android.view.View;

public class MainPanel extends SurfaceView implements SurfaceHolder.Callback {
public class MainPanel extends SurfaceView implements SurfaceHolder.Callback, Gameboard {

private static final String TAG = MainPanel.class.getSimpleName();

Expand Down
5 changes: 5 additions & 0 deletions android/src/com/relurori/engine/main/Gameboard.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.relurori.engine.main;

public interface Gameboard {
public void updatePhysics();
}

0 comments on commit ed1c83d

Please sign in to comment.