Examples of ThePlayerPressesTheDropKey


Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class TheGlyphWillNotMoveDown extends HellboundScenario {

    protected void specifySteps() {
        given(new TheFirstGlyphIsDisplayedOnTheBoard());
        when(new ThePlayerPressesTheDropKey());
        when(new ThePlayerPressesTheDownKey());
        then(new TheGlyphShouldBecomeJunkAndTheNextGlyphShouldAppear(
                "..ZZ..." + NL +
                "...ZZ.." + NL +
                "......." + NL +
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

        // T-shape to the left
        when(new ThePlayerPressesRightRotate());
        when(new ThePlayerPressesRightRotate());
        when(new ThePlayerPressesTheLeftKey());
        when(new ThePlayerPressesTheLeftKey());
        when(new ThePlayerPressesTheDropKey());       
        when(new TimePasses());
       
        // 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());
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class TheJunkIsAlmostToTheTop extends HellboundScenario {

    protected void specifySteps() {
        given(new TheFirstGlyphIsDisplayedOnTheBoard());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        then(new ThePitShouldLookLike( // sanity check
                "..ZZ..." + NL +
                "...ZZ.." + NL +
                "......." + NL +
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class ThereIsNoSpaceForTheNextGlyph extends HellboundScenario {

    protected void specifySteps() {
        given(new TheJunkIsAlmostToTheTop());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        then(new TheGlyphShouldBecomeJunkAndTheNextGlyphShouldAppearOverlappingIt(
                "..L...." + NL +
                "..L...." + NL +
                "..LL..." + NL +
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class ThePlayerDropsTheGlyphToMakeALine extends HellboundScenario {

    protected void specifySteps() {
        given(new TheJunkHasAHoleAndAGlyphOfTheRightShapeIsAboveIt());
        when(new ThePlayerPressesTheDropKey());
        when(new TimePasses());
        then(new TheLineShouldDisappearAndTheNextGlyphShouldAppear());
    }
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class ThePlayerDropsTheGlyphIntoAnEmptyPit extends HellboundScenario {
   
    public void specifySteps() {
        given(new TheFirstGlyphIsDisplayedOnTheBoard());
        when(new ThePlayerPressesTheDropKey());
        then(new TheGlyphShouldFallToTheBottom());
        when(new TimePasses());               
        then(new TheGlyphShouldBecomeJunkAndTheNextGlyphShouldAppear(
                "..ZZ..." + NL +
                "...ZZ.." + NL +
View Full Code Here

Examples of com.sirenian.hellbound.events.ThePlayerPressesTheDropKey

public class ThePlayerDropsTheGlyphOntoJunk extends HellboundScenario {

    public void specifySteps() {
        given(new ThePlayerDropsTheGlyphIntoAnEmptyPit());
        when(new ThePlayerPressesTheDropKey());
        then(new TheGlyphShouldFallOntoTheJunk());
        when(new TimePasses());
        then(new TheGlyphShouldBecomeJunkAndTheNextGlyphShouldAppear(
                "...SS.." + NL +
                "..SS..." + NL +
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.