Server.Mobiles.BaseCreature.GetTeamSize C# (CSharp) Method

GetTeamSize() public method

public GetTeamSize ( int iRange ) : int
iRange int
return int
        public virtual int GetTeamSize(int iRange)
        {
            int iCount = 0;

            foreach ( Mobile m in this.GetMobilesInRange( iRange ) )
            {
                if (m is BaseCreature)
                {
                    if ( ((BaseCreature)m).Team == Team )
                    {
                        if ( !m.Deleted )
                        {
                            if ( m != this )
                            {
                                if ( CanSee( m ) )
                                {
                                    iCount++;
                                }
                            }
                        }
                    }
                }
            }

            return iCount;
        }
BaseCreature