Commit 7639b5b5 authored by Aneta Steimarova's avatar Aneta Steimarova

#929 Removed wait(WAIT_TIME) from test of game In the darkness

parent f4a43980
......@@ -29,6 +29,7 @@ import java.util.List;
import cz.nic.tablexia.game.games.in_the_darkness.InTheDarknessDifficulty;
import cz.nic.tablexia.game.games.in_the_darkness.InTheDarknessGame;
import cz.nic.tablexia.game.games.in_the_darkness.action.InTheDarknessActionType;
import cz.nic.tablexia.screen.AbstractTablexiaScreen;
import cz.nic.tablexia.util.ui.actionwidget.Action;
import cz.nic.tablexia.util.ui.actionwidget.Action.ActionListener;
import cz.nic.tablexia.game.games.in_the_darkness.assets.InTheDarknessAssets;
......@@ -48,6 +49,7 @@ import static com.badlogic.gdx.scenes.scene2d.actions.Actions.sequence;
*
*/
public class ActionsWidget extends Group implements ActionListener {
public static final String EVENT_DROP_DOWN = "drop down card";
public enum ActionLayer {
BACKGROUND_LAYER (0),
......@@ -254,6 +256,7 @@ public class ActionsWidget extends Group implements ActionListener {
@Override
public void onActionDrop(Action action, int collidesWithNumber) {
AbstractTablexiaScreen.triggerScenarioStepEvent(EVENT_DROP_DOWN);
if (collidesWithNumber != Action.NO_COLLISION_NUMBER) {
actionsStripWidget.addSelectedAction(action.getTexturePath(), collidesWithNumber, inTheDarknessGame, action.getActionNumber());
currentTutorialStepNumber++;
......
TestGameRunesEasyNoneStar
TestGameRunesEasyOneStar
TestGameRunesEasyTwoStar
TestGameRunesEasyThreeStar
TestGameRunesMediumNoneStar
TestGameRunesMediumOneStar
TestGameRunesMediumTwoStar
TestGameRunesMediumThreeStar
TestGameRunesHardNoneStar
TestGameRunesHardOneStar
TestGameRunesHardTwoStar
TestGameRunesHardThreeStar
\ No newline at end of file
TestGameInTheDarknessEasy
TestGameInTheDarknessMedium
TestGameInTheDarknessHard
TestGameInTheDarknessEasyScenario
TestGameInTheDarknessMediumScenario
TestGameInTheDarknessHardScenario
\ No newline at end of file
......@@ -565,7 +565,7 @@ public class TestGameInTheDarkness extends AbstractTestGame {
moveActionToMenu(incGetSteps() + ". Move action with action number: " + action.getActionNumber() + " to menu",xStart,yStart,xMoveFinish,yMoveFinish,action,menu);
wait(WAIT_TIME);
waitForEvent(incGetSteps() + ". " , ActionsWidget.EVENT_DROP_DOWN);
}
private Action findActionByActionType(InTheDarknessActionType type, List<Action> actions){
......
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