コード例 #1
0
        public bool checkIfPropFits(Point point, List <Point> points, IProp prop, Room room)
        {
            for (var i = 0; i < prop.Width(); i++)
            {
                for (var j = 0; j < prop.Height(); j++)
                {
                    var p2 = new Point(point.X + i, point.Y + j);

                    if (!points.Contains(p2))
                    {
                        return(false);
                    }
                }
            }
            //	if (! prop.WallHugger()) return false;
            return(checkWallHuggerCondition(point, room, prop) == prop.WallHugger());
        }