예제 #1
0
        public void ReceiveDamage(CombatAction combatAction)
        {
            var damageAction = combatAction as DamageAction;

            HealthPoint.Minus(damageAction.DamageValue);
            CallAction(CombatActionType.CauseDamage, combatAction);
        }
예제 #2
0
        public void ReceiveDamage(CombatOperation combatOperation)
        {
            var damageOperation = combatOperation as DamageOperation;

            HealthPoint.Minus(damageOperation.DamageValue);
        }