use of main.content.enums.rules.VisionEnums.OUTLINE_TYPE in project Eidolons by IDemiurge.
the class JUnitClearshotTest method checkObj.
protected void checkObj(DC_Obj sub, boolean hero_inside, boolean inside) {
OUTLINE_TYPE outline = sub.getOutlineType();
boolean blocked = hero_inside != inside;
LogMaster.setOff(false);
if (blocked)
if (OUTLINE_TYPE.BLOCKED_OUTLINE != outline) {
boolean result = game.getVisionMaster().getSightMaster().getClearShotCondition().check(getHero(), sub);
if (!result) {
main.system.auxiliary.log.LogMaster.log(1, "Failed ClearShotCondition:" + " " + sub + "; hero_inside= " + hero_inside + "; inside=" + inside);
assertTrue(false);
}
} else if (OUTLINE_TYPE.BLOCKED_OUTLINE == outline) {
main.system.auxiliary.log.LogMaster.log(1, "Failed BLOCKED_OUTLINE:" + " " + sub + "; hero_inside= " + hero_inside + "; inside=" + inside);
assertTrue(false);
}
if (sub instanceof BattleFieldObject)
if (!sub.isMine())
if (sub.getVisibilityLevelForPlayer() != VISIBILITY_LEVEL.UNSEEN) {
main.system.auxiliary.log.LogMaster.log(1, "Failed UNSEEN:" + " " + sub + "; hero_inside= " + hero_inside + "; inside=" + inside);
assertTrue(false);
}
}
Aggregations