Exemplo n.º 1
0
 public void attacker_chosen(LOTRPlayer player, PlayerCard attacker)
 {
     if (!attacker.is_exhausted())
     {
         attacker.exhaust();
         attacking_player_cards.Add(attacker);
     }
 }
Exemplo n.º 2
0
    public static void beravor(EventArgs args)
    {
        GameArgs   game_args  = (GameArgs)args;
        PlayerCard me         = (PlayerCard)game_args.relevant_card;                                                           //TODO: make faramir pick a player, but for now theres only one player
        Action     the_action = () => { me.exhaust(); game.get_cur_player().draw_card(); game.get_cur_player().draw_card(); }; //put me in play

        game.execute_action(the_action);
    }
Exemplo n.º 3
0
    public static void great_forest_web(EventArgs args)
    {
        GameArgs      game_args          = (GameArgs)args;
        Card          card_to_respond_to = game_args.relevant_card;
        Action <Card> the_action         = (Card c) =>
        {
            PlayerCard card_exhusted = (PlayerCard)c;
            card_exhusted.exhaust();
        };

        game.wait_for_forced_response(card_to_respond_to: card_to_respond_to,
                                      after_responding_with_card: the_action,
                                      what_to_do_after_responding: game_args.what_to_do_after_event_or_if_no_response);
    }
Exemplo n.º 4
0
    public static void faramir(EventArgs args)
    {
        GameArgs   game_args = (GameArgs)args;
        PlayerCard me        = (PlayerCard)game_args.relevant_card; //TODO: make faramir pick a player, but for now theres only one player

        Action the_action = () =>
        {
            me.exhaust();
            foreach (var hero in game.get_cur_player().get_heroes())
            {
                hero.add_flag(LOTRAbility.ABILITY_FLAGS.FARAMIR);
            }
            foreach (var ally in game.get_cur_player().get_allies())
            {
                ally.add_flag(LOTRAbility.ABILITY_FLAGS.FARAMIR);
            }
        }; //put me in play

        game.execute_action(the_action);
    }