Exemplo n.º 1
0
 public void SetPriority(int index)
 {
     PriorityCounter = index;
     if (CurrentAction != null)
     {
         CurrentPriority.PromptPlayerStateAction(CurrentAction);
     }
 }
Exemplo n.º 2
0
 public void PassPriority()
 {
     //Check if an effect requires a target and prompt the proper player if so
     if (TargetedAbilities.Count > 0)
     {
         HighlightValidTargets(TargetedAbilities.Peek());
         TargetedAbilities.Peek().Caster.PromptPlayerTargetRequired(TargetedAbilities.Peek());
     }
     else
     {
         //Pass priority and pass the game if all players have passed, otherwise prompt the next player
         PriorityCounter++;
         if (PriorityCounter >= TurnOrder.Count)
         {
             PriorityCounter = 0;
             ContinueGame();
         }
         else if (CurrentAction != null)
         {
             CurrentPriority.PromptPlayerStateAction(CurrentAction);
         }
     }
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return("[" + PID.ToString() + "] " + Name + ", stan=" + State.ToString() + ", priorytet=" + CurrentPriority.ToString());
 }