Ejemplo n.º 1
0
 void init_card_Stack()
 {
     this.actionStack     = new ActionStack(5);
     this.actionSelection = new ActionStack(0);
     this.actionStack.actionList.Add(ActionCardStorage.GetForward());
     this.actionStack.actionList.Add(ActionCardStorage.GetBackward());
     this.actionStack.actionList.Add(ActionCardStorage.GetRotationRight());
     this.actionStack.actionList.Add(ActionCardStorage.GetRotationLeft());
     this.actionStack.actionList.Add(ActionCardStorage.GetEmpty());
 }
Ejemplo n.º 2
0
 public ActionCard getActionCard(int index)
 {
     if (index < actionList.Count)
     {
         return(actionList[index]);
     }
     else
     {
         return(ActionCardStorage.GetEmpty());
     }
 }