Testmerge #5

Merged
j23f0712 merged 59 commits from development into dev/test 2024-11-17 15:20:54 +01:00
5 changed files with 54 additions and 3 deletions
Showing only changes of commit d9a827697d - Show all commits

View File

@@ -0,0 +1,5 @@
package pp.mdga.client;
public class ActionSynchronizer {
}

View File

@@ -8,4 +8,16 @@ public class Animation {
Animation(MdgaApp app_) { Animation(MdgaApp app_) {
app = app_; app = app_;
} }
void play() {
}
void update(float tpf) {
}
boolean isFinished() {
return true;
}
} }

View File

@@ -1,5 +1,15 @@
package pp.mdga.client.Animation; package pp.mdga.client.Animation;
public class AnimationHandler { import pp.mdga.client.MdgaApp;
public class AnimationHandler {
private MdgaApp app;
public AnimationHandler(MdgaApp app_) {
app = app_;
}
public void playAnimation() {
}
} }

View File

@@ -1,5 +1,15 @@
package pp.mdga.client.Board; package pp.mdga.client.Board;
public class BoardView { import com.jme3.math.Vector3f;
public class BoardView {
private static final float GRID_SIZE = 10.0f;
private static final float GRID_LEVEL = 0.0f;
private static Vector3f gridToWorld(int x, int y) {
assert(x >= 0);
assert(y >= 0);
return new Vector3f(GRID_SIZE * x, GRID_LEVEL, GRID_SIZE * y);
}
} }

View File

@@ -1,8 +1,12 @@
package pp.mdga.client; package pp.mdga.client;
import com.jme3.app.SimpleApplication; import com.jme3.app.SimpleApplication;
import com.jme3.renderer.RenderManager;
import pp.mdga.client.Animation.AnimationHandler;
public class MdgaApp extends SimpleApplication { public class MdgaApp extends SimpleApplication {
private AnimationHandler animationHandler;
public static void main(String[] args) { public static void main(String[] args) {
MdgaApp app = new MdgaApp(); MdgaApp app = new MdgaApp();
app.start(); app.start();
@@ -10,6 +14,16 @@ public static void main(String[] args) {
@Override @Override
public void simpleInitApp() { public void simpleInitApp() {
animationHandler = new AnimationHandler(this);
}
@Override
public void simpleUpdate(float tpf) {
} }
}
@Override
public void simpleRender(RenderManager rm) {
}
}