示例#1
0
 /// <summary>
 /// override of Player.ability()
 /// </summary>
 /// <param name="abilityAction ">this is the the action for abilityaction</param>
 /// <param name="game"> this is the current game</param>
 /// <returns></returns>
 public override PhaseList ability(AbilityAction abilityAction, IGame game)
 {
     if (abilityAction == null)
     {
         throw new EmptyException(Legends_of_the_Three_Kingdoms.Properties.Resources.abilityaction_null);
     }
     else if (game == null)
     {
         throw new EmptyException(Legends_of_the_Three_Kingdoms.Properties.Resources.game_null);
     }
     this.handCards.Remove(abilityAction.card);
     abilityAction.targets[0].handCards.Add(abilityAction.card);
     return(null);
 }
示例#2
0
 /// <summary>
 /// special for Lei bei
 /// </summary>
 /// <param name="abilityAction"></param>
 /// <param name="game"></param>
 /// <returns></returns>
 public virtual PhaseList ability(AbilityAction abilityAction, IGame game)
 {
     return(null);
 }
示例#3
0
 /// <summary>
 /// this method is only for Liu Bei's ability
 /// </summary>
 /// <param name="abilityAction"></param>
 /// <param name="game"></param>
 /// <returns></returns>
 public virtual PhaseList responseAbilityAction(AbilityAction abilityAction, IGame game)
 {
     game.log(Legends_of_the_Three_Kingdoms.Properties.Resources.Player + player.ToString() + Legends_of_the_Three_Kingdoms.Properties.Resources._Don_t_have_the_ability);
     return(null);
 }
 public override PhaseList responseAbilityAction(AbilityAction abilityAction, IGame game)
 {
     player.ability(abilityAction, game);
     return(new PhaseList(this));
 }