@Override public void setAbleToShootThrough(WeaponCategory category, boolean able) { if (able) { shootThrough |= 1 << category.getId(); } else { shootThrough &= ~(1 << category.getId()); } }
@Override public boolean isAbleToShootThrough(WeaponCategory weaponCategory) { return ((shootThrough >> weaponCategory.getId()) & 1) != 0; }