MapServer.BaseObject.GetVisibleList C# (CSharp) Méthode

GetVisibleList() public méthode

public GetVisibleList ( ) : RefreshObject>.Dictionary
Résultat RefreshObject>.Dictionary
        public Dictionary<uint, RefreshObject> GetVisibleList()
        {
            return mVisibleList;
        }

Usage Example

Exemple #1
0
 //取该坐标点是否有对象[优先判断是否有阻挡]
 public bool GetPointOfObj(BaseObject obj, short x, short y)
 {
     if (!CanMove(x, y))
     {
         return(true);
     }
     obj.RefreshVisibleObject();
     foreach (RefreshObject baseobj in obj.GetVisibleList().Values)
     {
         BaseObject _obj = baseobj.obj;
         if (_obj.GetCurrentX() == x && _obj.GetCurrentY() == y)
         {
             return(true);
         }
     }
     if (mListAddObj.Count > 0)
     {
         for (int i = 0; i < mListAddObj.Count; i++)
         {
             BaseObject _obj = mListAddObj[i];
             if (_obj.GetCurrentX() == x && _obj.GetCurrentY() == y)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
All Usage Examples Of MapServer.BaseObject::GetVisibleList