Esempio n. 1
0
 /*
  *	setUpQueue method will set up the mergeQueue with all the AIPolygons currently being held
  *	Parameter:	None
  *	Return:	None
  */
 void setUpQueue()
 {
     for (int count = polygonArray.Length - 1; count >= 0; count--)
     {
         mergeQueue.enqueue(polygonArray[count]);
     }
 }
Esempio n. 2
0
 /*
  * placeNodeInQueue method will look at a node to see if its polygon is free and if so it will add the polygon being held
  *      to a AIPolygonQueue
  * Parameter:	(AIBinaryTreeNode)nodeToPlace is the node that needs its polygon check to see if its free
  * Return:	none
  */
 void placeNodeInQueue(AIBinaryTreeNode nodeToPlace, AIPolygonQueue tempQueue)
 {
     if (nodeToPlace.isFree() == true)
     {
         tempQueue.enqueue(nodeToPlace.getPolygon());
     }
 }