Minor work
This commit is contained in:
@@ -11,7 +11,7 @@ public AnimationHandler(MdgaApp app) {
|
||||
this.app = app;
|
||||
}
|
||||
|
||||
public void playAnimation() {
|
||||
public void playAnimation(AnimationType type) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2,11 +2,25 @@
|
||||
|
||||
import com.jme3.math.Vector3f;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class BoardView {
|
||||
private static final float GRID_SIZE = 10.0f;
|
||||
private static final float GRID_ELEVATION = 0.0f;
|
||||
private static final int GRID_EXTEND = 11;
|
||||
|
||||
private PileControl drawPile = new PileControl();
|
||||
private PileControl discardPile = new PileControl();
|
||||
|
||||
private ArrayList<NodeControl> infield = new ArrayList<NodeControl>(40);
|
||||
private ArrayList<PieceControl> pieces;
|
||||
|
||||
BoardView(int playerCount) {
|
||||
assert(2 <= playerCount && playerCount <= 4);
|
||||
|
||||
pieces = new ArrayList<PieceControl>(4 * playerCount);
|
||||
}
|
||||
|
||||
private static Vector3f gridToWorld(int x, int y) {
|
||||
assert(0 <= x && x < GRID_EXTEND);
|
||||
assert(0 <= y && y < GRID_EXTEND);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package pp.mdga.client.Board;
|
||||
|
||||
public class CardControl {
|
||||
public class PileControl {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user