Exemplo n.º 1
0
 /**
  * Record deep history psuedostate.
  *
  * @param historyParent The parent state of the deep history psuedostate
  * @param historyState The state to return to if transitioning to the deep history psuedostate
  *
  */
 void RecordDeephist(StateDelegate historyParent, StateDelegate historyState)
 {
     for (int i = 0; i < deepHistoryTable.Count; i++)
     {
         if (deepHistoryTable[i].Parent == historyParent)
         {
             deepHistoryTable[i] = new DeepHistoryEntry(historyParent, historyState);
             return;
         }
     }
     deepHistoryTable.Add(new DeepHistoryEntry(historyParent, historyState));
 }
Exemplo n.º 2
0
 /**
 * Record deep history psuedostate.
 *
 * @param historyParent The parent state of the deep history psuedostate
 * @param historyState The state to return to if transitioning to the deep history psuedostate
 *
 */
 void RecordDeephist(StateDelegate historyParent, StateDelegate historyState)
 {
     for (int i = 0; i < deepHistoryTable.Count; i++)
     {
         if (deepHistoryTable[i].Parent == historyParent)
         {
             deepHistoryTable[i] = new DeepHistoryEntry(historyParent, historyState);
             return;
         }
     }
     deepHistoryTable.Add(new DeepHistoryEntry(historyParent, historyState));
 }