Package com.sirenian.hellbound.outcomes

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

package com.sirenian.hellbound.outcomes;

import java.awt.Color;

import org.jbehave.core.Ensure;
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.gui.RenderedPit;
import com.sirenian.hellbound.stories.util.WorldKey;

public class TheGlyphShouldBeCentredAtTheTopOfThePit extends HellboundOutcome {
  public void verifyAnyTimeIn(World world) {
      Segments expectedSegments = T_SHAPE_AT_TOP;
      Color expectedColor = Hellbound.COLORMAP.getColorFor(GlyphType.T);
    RenderedPit graphics = (RenderedPit) world.get(WorldKey.PIT, null);
        Ensure.that(graphics, contains(expectedSegments, expectedColor));
  }
}
TOP

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

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.