Dodgeball.Game.Player.hitByBall C# (CSharp) Метод

hitByBall() публичный Метод

public hitByBall ( Ball ball ) : void
ball Ball
Результат void
        void hitByBall(Ball ball)
        {
            if(ball.owner != null && ball.owner.team != team) {
            hitPoints -= (ball.velocity.Length()) / DAMAGE_DENOM;
            playHitSound();
            hurt = true;
            throwing = false;
            parrying = false;
            velocity.X = ball.velocity.X*10;
            velocity.Y = ball.velocity.Y*10;
            play("hurt");
            blood.spray();
            dropBall();
              }
        }