示例#1
0
    bool RoomCollides(DRoom r)
    {
        foreach (DRoom r2 in unconnectedRooms)
        {
            if (r.CollidesWith(r2))
            {
                return(true);
            }
        }
        foreach (DRoom r3 in edgeRooms)
        {
            if (r.CollidesWith(r3))
            {
                return(true);
            }
        }

        return(false);
    }
示例#2
0
文件: TDMap.cs 项目: miberen/Game
 bool RoomCollides(DRoom r)
 {
     foreach (DRoom r2 in rooms)
     {
         if (r.CollidesWith(r2))
         {
             return(true);
         }
     }
     return(false);
 }
示例#3
0
 bool RoomCollides(DRoom r)
 {
     foreach(DRoom r2 in rooms)
     {
         if (r.CollidesWith(r2))
         {
             return true;
         }
     }
     return false;
 }