Minor work

This commit is contained in:
Felix
2024-11-14 15:23:59 +01:00
parent 7fa45f39c6
commit 921933722a
3 changed files with 16 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ public AnimationHandler(MdgaApp app) {
this.app = app;
}
public void playAnimation() {
public void playAnimation(AnimationType type) {
}

View File

@@ -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);

View File

@@ -1,5 +1,5 @@
package pp.mdga.client.Board;
public class CardControl {
public class PileControl {
}