use of main.entity.Ref in project Eidolons by IDemiurge.
the class DefaultActionHandler method doDebugStuff.
private static boolean doDebugStuff(Unit source, BattleFieldObject target) {
target.getGame().getVisionMaster().getVisionController().log(source, target);
target.getGame().getVisionMaster().getVisionController().logFor(target);
OUTLINE_TYPE outlineType = source.getGame().getVisionMaster().getOutlineMaster().getOutlineType(target, source);
VISIBILITY_LEVEL vl = source.getGame().getVisionMaster().getVisibilityLevel(source, target);
target.getPlayerVisionStatus(true);
target.getGamma();
source.getGame().getVisionMaster().getIlluminationMaster().getIllumination(target);
target.getGame().getVisionMaster().getGammaMaster().clearCache();
target.getGame().getVisionMaster().getIlluminationMaster().clearCache();
int g = target.getGame().getVisionMaster().getGammaMaster().getGamma(source, target);
outlineType = source.getGame().getVisionMaster().getOutlineMaster().getOutlineType(target, source);
vl = source.getGame().getVisionMaster().getVisibilityLevel(source, target);
ClearShotCondition.clearCache();
Ref ref = new Ref(source);
ref.setMatch(target.getId());
source.getGame().getVisionMaster().getSightMaster().getClearShotCondition().preCheck(ref);
return false;
}
use of main.entity.Ref in project Eidolons by IDemiurge.
the class DefaultActionHandler method doDebugStuffCell.
private static boolean doDebugStuffCell(Unit source, Coordinates c) {
Ref ref = new Ref(source);
ref.setMatch(source.getGame().getCellByCoordinate(c).getId());
ClearShotCondition.clearCache();
source.getGame().getVisionMaster().getSightMaster().getClearShotCondition().preCheck(ref);
DC_Obj target = source.getGame().getCellByCoordinate(c);
target.getGame().getVisionMaster().getGammaMaster().clearCache();
target.getGame().getVisionMaster().getIlluminationMaster().clearCache();
int g = target.getGame().getVisionMaster().getGammaMaster().getGamma(source, target);
return false;
}
use of main.entity.Ref in project Eidolons by IDemiurge.
the class ActiveAnimator method animate.
public void animate(Obj target) {
Ref REF = getRef().getCopy();
REF.setTarget(target.getId());
animate(REF);
}
use of main.entity.Ref in project Eidolons by IDemiurge.
the class DC_ActionManager method activateAction.
public boolean activateAction(Obj target, Obj source, Active action) {
Ref ref = source.getRef().getCopy();
ref.setTarget(target.getId());
ref.setTriggered(true);
return action.activatedOn(ref);
}
use of main.entity.Ref in project Eidolons by IDemiurge.
the class HeroCreator method createHeroObj.
public static Unit createHeroObj(ObjType type) {
Unit hero = new Unit(type, 0, 0, getDefaultPlayer(), Eidolons.getGame(), new Ref(Eidolons.getGame()));
newId(type);
Eidolons.getGame().getState().addObject(hero);
// hero.afterEffects();
return hero;
}
Aggregations