Package forestry.core.genetics

Examples of forestry.core.genetics.AlleleBoolean


    newLine();

    String yes = StringUtil.localize("yes");
    String no = StringUtil.localize("no");

    AlleleBoolean primaryFireproof = (AlleleBoolean)tree.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());
    AlleleBoolean secondaryFireproof = (AlleleBoolean)tree.getGenome().getInactiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());

    drawLine(StringUtil.localize("gui.fireproof"), COLUMN_0);
    drawLine(StringUtil.readableBoolean(primaryFireproof.getValue(), yes, no), COLUMN_1, tree, EnumTreeChromosome.FIREPROOF, false);
    drawLine(StringUtil.readableBoolean(secondaryFireproof.getValue(), yes, no), COLUMN_2, tree, EnumTreeChromosome.FIREPROOF, false);

    newLine();

    drawRow(StringUtil.localize("gui.effect"), tree.getGenome().getEffect().getName(),
        ((IAlleleEffect) tree.getGenome().getInactiveAllele(EnumTreeChromosome.EFFECT.ordinal())).getName(), tree,
View Full Code Here

TOP

Related Classes of forestry.core.genetics.AlleleBoolean

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.