/// <summary> /// override Player.abilitySun() /// </summary> /// <param name="abilityAction "> this is the action of ability</param> /// <param name="game ">this is the current game</param> /// <returns>null nothing needs to return</returns> public override PhaseList abilitySun(AbilityActionSun abilityAction, IGame game) { if (abilityAction == null) { throw new EmptyException(Legends_of_the_Three_Kingdoms.Properties.Resources.abilityActon_null); } else if (game == null) { throw new EmptyException(Legends_of_the_Three_Kingdoms.Properties.Resources.game_null); } this.drawCards(1, game); this.handCards.Remove(abilityAction.card); return(null); }
/// <summary> /// special for Sun Quan /// </summary> /// <param name="abilityAction"></param> /// <param name="game"></param> /// <returns></returns> public virtual PhaseList abilitySun(AbilityActionSun abilityAction, IGame game) { return(null); }
/// <summary> /// this method is only for Sun Quan's ability /// </summary> /// <param name="abilityAction"></param> /// <param name="game"></param> /// <returns></returns> public virtual PhaseList responseAbilityActionSun(AbilityActionSun 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 responseAbilityActionSun(AbilityActionSun abilityAction, IGame game) { player.abilitySun(abilityAction, game); return(new PhaseList(this)); }