Add acoustics #2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user