public bool IsTargetCompletelyBlockedBehindCover(HeroSystemCharacter viewer, ITargetable target) { ProtectingCover cover = MapFactory.ActiveGameMap.GetConcealmentForCharacterBetweenOtherCharacter(viewer, target); if (cover != null) { ConcealmentAmount coverage = cover.BlockingCoverProvidedAgainstOtherCharacter(viewer, target); if (coverage == ConcealmentAmount.Partial || coverage == ConcealmentAmount.None) { { return(false); } } else { { return(true); } } } return(false); }
public void UpdateAmountOfConcealmentBeingProvidedToCharacterUnderCoverFromOtherCharacter(ConcealmentAmount concealmentAmount, HeroSystemCharacter characterBehindCover, HeroSystemCharacter other) { ConcealmentAmount = concealmentAmount; }