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;
}
Aggregations