Exemplo n.º 1
0
 /**
  * Add element to the element queue.
  * Max 2 elements; adding element when the queue
  * has 2 already results in removal of the least
  * recently added element.
  *
  * Example call:
  * Call this with QueueElement(Elements.fire)
  * Where Elements is the Element.elemEnum
  **/
 void QueueElement(Elements.elemEnum elem)
 {
     // Remove all elements if there are two already
     if (elemsSelected.getNumAssignedElements() == 2)
     {
         clearCurrentSelectedElements();
     }
     elemsSelected.pushIfPossibleElseClearAndPush(elem);
     HighlightElementSelection(elem, true);
 }