Package com.sirenian.hellbound.domain.glyph

Examples of com.sirenian.hellbound.domain.glyph.GlyphType


        this.height = height;
        random = new Random(seed);
    }

    public LivingGlyph nextGlyph(CollisionDetector detector, ListenerSet glyphListeners) {
        GlyphType glyphType = GlyphType.ALL_LIVING[random.nextInt(GlyphType.ALL_LIVING.length)];
        Logger.debug(this, "Creating next glyph, glyph type is " + glyphType);
        LivingGlyph glyph = new LivingGlyph(glyphType, detector, CenterCalculator.forWidth(width));
        glyph.addListeners(glyphListeners);
    return glyph;
    }
View Full Code Here


    }
 
  public void paint(Graphics g) {
    for (int i = 0; i < pitWidth; i++) {
      for (int j = 0; j < pitHeight; j++) {
        GlyphType type = (GlyphType)TYPEMAP.get(new Segment(i, j));
        if (type == null) { type = GlyphType.PIT; }
        Color color = colorMap.getColorFor(type);
        g.setColor(color);
        g.fillRect((scale * i), (scale * j), scale, scale);
      }
View Full Code Here

TOP

Related Classes of com.sirenian.hellbound.domain.glyph.GlyphType

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.