Examples of ThePlayerPressesTheRightKey


Examples of com.sirenian.hellbound.events.ThePlayerPressesTheRightKey

public class TheGlyphIsAgainstTheRightWall extends HellboundScenario {

    protected void specifySteps() {
        given(new TheFirstGlyphIsDisplayedOnTheBoard());
        when(new ThePlayerPressesTheRightKey());
        when(new ThePlayerPressesTheRightKey());
        then(new TheGlyphShouldBeAgainstTheRightWall()); // sanity check
    }
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheRightKey

        // Z-shape next to it
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
       
        // S-shape on the Z-shape
        when(new ThePlayerPressesTheRightKey());
        when(new ThePlayerPressesLeftRotate());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
       
        // J-shape ready to be dropped in hole
        when(new ThePlayerPressesTheRightKey());
        when(new ThePlayerPressesTheRightKey());
        when(new ThePlayerPressesTheRightKey());
       
        then(new ThePitShouldLookLike(
                "......J" + NL +
                "......J" + NL +
                ".....JJ" + NL +
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheRightKey

public class TheGlyphWillNotMoveRight extends HellboundScenario {

    protected void specifySteps() {
        given(new TheGlyphIsAgainstTheRightWall());
        when(new ThePlayerPressesTheRightKey());
        then(new TheGlyphShouldBeAgainstTheRightWall());
    }
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheRightKey

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());
View Full Code Here
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.