Esempio n. 1
0
            public bool Resolve(HealthCom healthCom)
            {
                int oldVal = _oldVal;

                _oldVal = healthCom.HP;
                return(oldVal != healthCom.HP);
            }
Esempio n. 2
0
            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();
            }