Package com.sirenian.hellbound.gui

Examples of com.sirenian.hellbound.gui.RenderedPit


public class TheGlyphShouldMoveDownwards extends HellboundOutcome {
  public void verifyAnyTimeIn(World world) {
      Segments expectedSegments = T_SHAPE_AT_TOP.movedDown();
      Color expectedColor = Hellbound.COLORMAP.getColorFor(GlyphType.T);
        RenderedPit pit = getPit(world);
        Ensure.that(pit, contains(expectedSegments, expectedColor));
  }
View Full Code Here


                new Segment(3, 11),
                new Segment(4, 11),
                new Segment(3, 12)
        );
        Color expectedColor = Hellbound.COLORMAP.getColorFor(GlyphType.T);
        RenderedPit pit = getPit(world);
        Ensure.that(pit, contains(expectedSegments, expectedColor));
    }
View Full Code Here

public class HellboundIsRunning extends HellboundGiven implements CleansUpWorld {

  public void setUpAnyTimeIn(World world) {
    DefaultWindowWrapper hellboundFrameWrapper = new DefaultWindowWrapper("HellboundFrame");   
    ForcedHeartbeat heartbeat = new ForcedHeartbeat();
    RenderedPit graphics = new RenderedPit(Hellbound.SCALE, Hellbound.WIDTH, Hellbound.HEIGHT, Hellbound.COLORMAP);
        EngineQueue engineQueue = new ThreadedEngineQueue();
        GuiQueue guiQueue = new ThreadedSwingQueue();
        PseudoRandomGlyphFactory glyphFactory = new PseudoRandomGlyphFactory(42, 7, 13);
   
        Hellbound hellbound = new Hellbound(engineQueue, guiQueue, heartbeat, createPitPanelWithDoublePaint(graphics), glyphFactory);
View Full Code Here

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

    public ThePitShouldLookLike(String expectedPit) {
        this.expectedPit = expectedPit;
    }

    public void verifyAnyTimeIn(World world) {
        RenderedPit pit = getPit(world);
        Ensure.that(pit, looksLike(expectedPit));
    }
View Full Code Here

TOP

Related Classes of com.sirenian.hellbound.gui.RenderedPit

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.