Package com.sirenian.hellbound.scenarios

Source Code of com.sirenian.hellbound.scenarios.ThePlayerMovesTheGlyph

package com.sirenian.hellbound.scenarios;

import com.sirenian.hellbound.events.ThePlayerPressesTheDownKey;
import com.sirenian.hellbound.events.ThePlayerPressesTheLeftKey;
import com.sirenian.hellbound.events.ThePlayerPressesTheRightKey;
import com.sirenian.hellbound.outcomes.TheGlyphShouldBeCentredAtTheTopOfThePit;
import com.sirenian.hellbound.outcomes.TheGlyphShouldMoveDownwards;
import com.sirenian.hellbound.outcomes.TheGlyphShouldMoveRight;
import com.sirenian.hellbound.outcomes.TheHeartbeatShouldBeSkipped;

public class ThePlayerMovesTheGlyph extends HellboundScenario {

    public void specifySteps() {
        given(new TheFirstGlyphIsDisplayedOnTheBoard());
        when(new ThePlayerPressesTheRightKey());
        then(new TheGlyphShouldMoveRight());
        when(new ThePlayerPressesTheLeftKey());
        then(new TheGlyphShouldBeCentredAtTheTopOfThePit());
        when(new ThePlayerPressesTheDownKey());
        then(new TheGlyphShouldMoveDownwards());
        then(new TheHeartbeatShouldBeSkipped());
    }
}
TOP

Related Classes of com.sirenian.hellbound.scenarios.ThePlayerMovesTheGlyph

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.