Minor work

This commit is contained in:
Felix Koppe
2024-11-14 17:13:56 +01:00
parent 92941f903c
commit 94ee786dc8
4 changed files with 10 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
package pp.mdga.client.Animation; package pp.mdga.client.Animation;
public interface Animation { abstract class Animation {
void play(); abstract void play();
void stop(); abstract void stop();
boolean isOver(); abstract boolean isOver();
} }

View File

@@ -1,6 +1,6 @@
package pp.mdga.client.Animation; package pp.mdga.client.Animation;
public class EmptyAnimation implements Animation { class EmptyAnimation implements Animation {
@Override @Override
void play() { void play() {
//nothing //nothing

View File

@@ -7,7 +7,7 @@
public class BoardView { public class BoardView {
private static final float GRID_SIZE = 10.0f; private static final float GRID_SIZE = 10.0f;
private static final float GRID_ELEVATION = 0.0f; private static final float GRID_ELEVATION = 0.0f;
private static final int GRID_EXTEND = 11; private static final int GRID_EXTEND = 5;
private PileControl drawPile = new PileControl(); private PileControl drawPile = new PileControl();
private PileControl discardPile = new PileControl(); private PileControl discardPile = new PileControl();
@@ -22,8 +22,8 @@ public class BoardView {
} }
private static Vector3f gridToWorld(int x, int y) { private static Vector3f gridToWorld(int x, int y) {
assert(0 <= x && x < GRID_EXTEND); assert(-GRID_EXTEND <= x && x <= GRID_EXTEND);
assert(0 <= y && y < GRID_EXTEND); assert(-GRID_EXTEND <= y && y < GRID_EXTEND);
return new Vector3f(GRID_SIZE * x, GRID_ELEVATION, GRID_SIZE * y); return new Vector3f(GRID_SIZE * x, GRID_ELEVATION, GRID_SIZE * y);
} }

View File

@@ -65,8 +65,8 @@ public void simpleInitApp() {
createModel(Asset.world); createModel(Asset.world);
System.out.println(Asset.node_normal.getModelPath()); //System.out.println(Asset.node_normal.getModelPath());
System.out.println(Asset.node_normal.getDiffPath()); //System.out.println(Asset.node_normal.getDiffPath());
} }
@@ -88,6 +88,4 @@ private Spatial createModel(Asset asset){
public void simpleUpdate(float tpf) { public void simpleUpdate(float tpf) {
//this method will be called every game tick and can be used to make updates //this method will be called every game tick and can be used to make updates
} }
}
} }