Package com.sirenian.hellbound.outcomes

Source Code of com.sirenian.hellbound.outcomes.TheGlyphShouldMoveRight

package com.sirenian.hellbound.outcomes;

import java.awt.Color;

import org.jbehave.core.story.domain.World;

import com.sirenian.hellbound.Hellbound;
import com.sirenian.hellbound.domain.Segments;
import com.sirenian.hellbound.domain.glyph.GlyphType;
import com.sirenian.hellbound.stories.util.WorldKey;

public class TheGlyphShouldMoveRight extends HellboundOutcome {
    protected void verifyAnyTimeIn(World world) {
        Segments expectedSegments = T_SHAPE_AT_TOP.movedRight();
        Color expectedColor =  Hellbound.COLORMAP.getColorFor(GlyphType.T);
        Object pit = world.get(WorldKey.PIT);
        ensureThat(pit, contains(expectedSegments, expectedColor));
    }
}
TOP

Related Classes of com.sirenian.hellbound.outcomes.TheGlyphShouldMoveRight

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.