fCraft.Particle.CheckHitPlayers C# (CSharp) Method

CheckHitPlayers() private method

private CheckHitPlayers ( List updates ) : void
updates List
return void
        private void CheckHitPlayers( List<BlockUpdate> updates )
        {
            foreach ( Player p in _world.Players ) {
                if ( ReferenceEquals( p, _owner ) && ( _startingPos - _pos ).LengthSquared <= 2 * 2 ) //do not react on owner within 2 blocks of the starting position
                    continue;
                if ( p.CanBeKilled() && p.Position.DistanceSquaredTo( _pos.ToPlayerCoords() ) <= 33 * 33 ) //less or equal than a block
                    _behavior.HitPlayer( _world, _pos, p, _owner, ref _restDistance, updates );
            }
        }