NScumm.Scumm.ScummEngine6.GetSpecialBox C# (CSharp) Метод

GetSpecialBox() защищенный Метод

protected GetSpecialBox ( System.Point p ) : int
p System.Point
Результат int
        protected int GetSpecialBox(Point p)
        {
            var numOfBoxes = GetNumBoxes() - 1;

            for (var i = numOfBoxes; i >= 0; i--)
            {
                var flag = GetBoxFlags((byte)i);

                if (!flag.HasFlag(BoxFlags.Invisible) && (flag.HasFlag(BoxFlags.PlayerOnly)))
                    return -1;

                if (CheckXYInBoxBounds(i, p))
                    return i;
            }

            return -1;
        }
ScummEngine6