Search in sources :

Example 16 with Dungeon

use of eidolons.game.battlecraft.logic.dungeon.universal.Dungeon in project Eidolons by IDemiurge.

the class ShadeLightCell method initTeamColor.

public Color initTeamColor() {
    // for each coordinate?
    // default per dungeon
    // Eidolons.getGame().getMaster().getObjCache()
    // IlluminationRule.
    COLOR_THEME colorTheme = null;
    if (type == SHADE_LIGHT.LIGHT_EMITTER) {
        for (Structure sub : Eidolons.game.getStructures()) {
            if (sub.isLightEmitter()) {
                // if (sub.getCoordinates().equals(new Coordinates(x,y)))
                colorTheme = new EnumMaster<COLOR_THEME>().retrieveEnumConst(COLOR_THEME.class, sub.getProperty(PROPS.COLOR_THEME, true));
                if (colorTheme != null)
                    break;
            }
        }
    }
    if (colorTheme == null) {
        Dungeon obj = Eidolons.game.getDungeon();
        colorTheme = obj.getColorTheme();
    }
    Color c = null;
    if (colorTheme != null)
        c = GdxColorMaster.getColorForTheme(colorTheme);
    if (c != null)
        return c;
    return DEFAULT_COLOR;
}
Also used : COLOR_THEME(main.content.CONTENT_CONSTS.COLOR_THEME) EnumMaster(main.system.auxiliary.EnumMaster) Dungeon(eidolons.game.battlecraft.logic.dungeon.universal.Dungeon) Color(com.badlogic.gdx.graphics.Color) Structure(eidolons.entity.obj.Structure)

Aggregations

Dungeon (eidolons.game.battlecraft.logic.dungeon.universal.Dungeon)16 LocationBuilder (eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder)4 DungeonPlan (eidolons.game.battlecraft.logic.dungeon.location.building.DungeonPlan)4 ObjType (main.entity.type.ObjType)4 File (java.io.File)2 Ref (main.entity.Ref)2 Coordinates (main.game.bf.Coordinates)2 Color (com.badlogic.gdx.graphics.Color)1 EndGameEffect (eidolons.ability.effects.special.meta.EndGameEffect)1 Structure (eidolons.entity.obj.Structure)1 DUNGEON_TEMPLATES (eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.DUNGEON_TEMPLATES)1 DungeonMaster (eidolons.game.battlecraft.logic.dungeon.universal.DungeonMaster)1 ENTRANCE_LAYOUT (eidolons.game.module.dungeoncrawl.dungeon.DungeonLevelMaster.ENTRANCE_LAYOUT)1 Location (eidolons.game.module.dungeoncrawl.dungeon.Location)1 BufferedImage (java.awt.image.BufferedImage)1 ArrayList (java.util.ArrayList)1 Abilities (main.ability.Abilities)1 ActiveAbility (main.ability.ActiveAbility)1 COLOR_THEME (main.content.CONTENT_CONSTS.COLOR_THEME)1 SUBDUNGEON_TYPE (main.content.enums.DungeonEnums.SUBDUNGEON_TYPE)1