public bool Resolve(HealthCom healthCom) { int oldVal = _oldVal; _oldVal = healthCom.HP; return(oldVal != healthCom.HP); }
public bool Resolve(HealthCom healthCom) { switch (Opreator) { case HPOps.Equal: return(healthCom.HP == Value); case HPOps.Greater: return(healthCom.HP > Value); case HPOps.Less: return(healthCom.HP < Value); } throw new NotImplementedException(); }