Commit f5f2dc4e authored by Luboš Horáček's avatar Luboš Horáček

#9 Spoon tests

parent efb2bf33
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('com.stanfy.spoon:spoon-gradle-plugin:0.14.1') {
exclude module: 'commons-io'
exclude module: 'guava'
}
classpath 'commons-io:commons-io:2.4'
classpath 'com.google.guava:guava:17.0'
}
}
android {
buildToolsVersion "21.1.2"
compileSdkVersion 21
......@@ -138,3 +124,7 @@ idea {
}
}
}
spoon {
debug = true // for debug output
}
......@@ -7,10 +7,7 @@ buildscript {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'org.robovm:robovm-gradle-plugin:1.0.0-beta-01'
classpath('com.stanfy.spoon:spoon-gradle-plugin:0.14.1') {
exclude module: 'commons-io'
exclude module: 'guava'
}
classpath('com.stanfy.spoon:spoon-gradle-plugin:1.0.2')
classpath 'commons-io:commons-io:2.4'
classpath 'com.google.guava:guava:17.0'
}
......
package cz.nic.tablexia.game.games.robbery;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.alpha;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeIn;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeOut;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.run;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.sequence;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.InputProcessor;
......@@ -18,6 +10,8 @@ import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Interpolation;
import com.badlogic.gdx.scenes.scene2d.Actor;
import java.util.List;
import cz.nic.tablexia.game.common.RandomAccess;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
import cz.nic.tablexia.game.games.robbery.assets.RobberyAssets;
......@@ -28,6 +22,12 @@ import cz.nic.tablexia.graphics.ColorTexture;
import cz.nic.tablexia.loader.CommonAssets;
import cz.nic.tablexia.screen.AbstractTablexiaScreen;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.alpha;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeIn;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.fadeOut;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.run;
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.sequence;
public class RobberyScreen extends AbstractTablexiaScreen<GameRule> {
private static int CREATURES_COUNT = 50;
......@@ -325,6 +325,8 @@ public class RobberyScreen extends AbstractTablexiaScreen<GameRule> {
private void processNewScreen(AbstractTablexiaScreen<Void> newScreen) {
AbstractTablexiaScreen<Void> lastScreen = actualScreen;
actualScreen = newScreen;
inputMultiplexer.addProcessor(newScreen.getInputProcessor());
newScreen.show();
if (lastScreen != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment