Package com.sirenian.hellbound.events

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


        // 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

public class TheGlyphWillNotMoveRight extends HellboundScenario {

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

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

Related Classes of com.sirenian.hellbound.events.ThePlayerPressesTheRightKey

Copyright © 2018 www.massapicom. 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.