Choreoh.Global.checkHouse C# (CSharp) Method

checkHouse() private static method

private static checkHouse ( LinkedList moves ) : void
moves LinkedList
return void
        private static void checkHouse(LinkedList<Skeleton> moves)
        {
            if (!canGesture)
                return;
            Joint rightHand = moves.First<Skeleton>().Joints[JointType.HandRight];
            Joint leftHand = moves.First<Skeleton>().Joints[JointType.HandLeft];
            Joint head = moves.First<Skeleton>().Joints[JointType.Head];
            if (rightHand.Position.Y > head.Position.Y && leftHand.Position.Y > head.Position.Y)
            {
                if (Math.Abs(rightHand.Position.X - leftHand.Position.X) < .2)
                {
                    canGesture = false;
                    lastGesture = "House";
                    canGestureTimer.Start();
                }
            }
        }