/** * Used for compound abnormal state checks * * @param effectId * @return */ public boolean isAbnormalState(EffectId effectId) { int state = abnormals & effectId.getEffectId(); return state > 0 && state <= effectId.getEffectId(); }
/** * Used for checking unique abnormal states * * @param effectId * @return */ public boolean isAbnormalSet(EffectId effectId) { return (abnormals & effectId.getEffectId()) == effectId.getEffectId(); }