Пример #1
0
        public bool Crashed(IWeapon weapon)
        {
            this.HP -= weapon.GetAttackPoint();

            if (this.HP <= 0)
            {
                EffectUtils.中爆発(this.X, this.Y);

                return(false);
            }
            return(true);
        }
Пример #2
0
        public bool Crashed(IWeapon weapon)
        {
            this.X += 10.0 * (weapon.IsFacingLeft() ? -1 : 1);             // ヒットバック

            this.HP -= weapon.GetAttackPoint();

            if (this.HP <= 0)             // ? dead
            {
                EffectUtils.中爆発(this.X, this.Y);
                return(false);
            }
            return(true);
        }
Пример #3
0
        public bool Crashed(IWeapon weapon)
        {
            EffectUtils.中爆発(this.X, this.Y);

            return(false);
        }