Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * Used for checking unique abnormal states
  *
  * @param effectId
  * @return
  */
 public boolean isAbnormalSet(EffectId effectId) {
   return (abnormals & effectId.getEffectId()) == effectId.getEffectId();
 }