Commit a003b8c8 authored by Aneta Steimarova's avatar Aneta Steimarova

#929 Added wait for event after click on object before move to strip widget

parent 838af146
......@@ -25,9 +25,11 @@ import com.badlogic.gdx.utils.Timer;
import cz.nic.tablexia.game.games.crime_scene.CrimeSceneGame;
import cz.nic.tablexia.game.games.crime_scene.gameobject.GameObject;
import cz.nic.tablexia.screen.AbstractTablexiaScreen;
import cz.nic.tablexia.util.entity.Touch;
public class DesktopCrimeSceneDragListener extends CrimeSceneDragListener {
public static final String EVENT_HIGHLIGHTED_GO = "higlighted object shown";
private Timer timer;
private static final float DELAY = 0.15f;
......@@ -94,6 +96,7 @@ public class DesktopCrimeSceneDragListener extends CrimeSceneDragListener {
public void run() {
gameObject.changeToCardDrawable();
crimeSceneGame.setHighlightedGameObject(gameObject);
AbstractTablexiaScreen.triggerScenarioStepEvent(EVENT_HIGHLIGHTED_GO);
crimeSceneGame.highlightGameObject(gameObject);
}
}, DELAY);
......
TestGameProtocolEasyNoneStar
TestGameProtocolEasyOneStar
TestGameProtocolEasyTwoStar
TestGameProtocolEasyThreeStar
TestGameProtocolMediumNoneStar
TestGameProtocolMediumOneStar
TestGameProtocolMediumTwoStar
TestGameProtocolMediumThreeStar
TestGameProtocolHardNoneStar
TestGameProtocolHardOneStar
TestGameProtocolHardTwoStar
TestGameProtocolHardThreeStar
\ No newline at end of file
TestGameCrimeSceneEasyNoneStar
TestGameCrimeSceneEasyOneStar
TestGameCrimeSceneEasyTwoStar
TestGameCrimeSceneEasyThreeStar
TestGameCrimeSceneMediumNoneStar
TestGameCrimeSceneMediumOneStar
TestGameCrimeSceneMediumTwoStar
TestGameCrimeSceneMediumThreeStar
TestGameCrimeSceneHardNoneStar
TestGameCrimeSceneHardOneStar
TestGameCrimeSceneHardTwoStar
TestGameCrimeSceneHardThreeStar
\ No newline at end of file
......@@ -36,6 +36,7 @@ import cz.nic.tablexia.game.games.crime_scene.CrimeSceneGame;
import cz.nic.tablexia.game.games.crime_scene.actors.PlaySoundScreen;
import cz.nic.tablexia.game.games.crime_scene.gameobject.GameObject;
import cz.nic.tablexia.game.games.crime_scene.gameobject.GameObjectType;
import cz.nic.tablexia.game.games.crime_scene.listeners.DesktopCrimeSceneDragListener;
import cz.nic.tablexia.game.games.crime_scene.model.CrimeSceneGameState;
import cz.nic.tablexia.menu.AbstractMenu;
import cz.nic.tablexia.menu.game.GameMenuDefinition;
......@@ -273,6 +274,7 @@ public class TestGameCrimeScene extends AbstractTestGame {
}
logOK();
waitForEvent(incGetSteps() + ". Wait for event higlighted object shown", DesktopCrimeSceneDragListener.EVENT_HIGHLIGHTED_GO);
}
......
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