Examples of playerActed()


Examples of cero.games.uno.ActionPlayACard.playerActed()

      ActionPlayACard action = new ActionPlayACard();
      ArrayList<Card> colcards = new ArrayList<Card>();
      colcards.add(playedcard);

      try {
        action.playerActed(new ActionEvent(game, player, from, to,
            colcards));
        game.registerAction(action);
      } catch (ActionException e) {
        // there shouldn't be any problem here !
        e.printStackTrace();
View Full Code Here

Examples of cero.games.uno.ActionSkipTurn.playerActed()

    Game game = CommandLineLauncher.getGame();
    Player player = CommandLineLauncher.getCurrentPlayer();

    ActionSkipTurn action = new ActionSkipTurn();
    try {
      action.playerActed(new ActionEvent(game, player, null, null, null));
    } catch (ActionException e) {
      // there shouldn't be any problem here !
      e.printStackTrace();
    }
    game.registerAction(action);
View Full Code Here

Examples of cero.games.uno.ActionSkipTurn.playerActed()

     * Action made when we skip our turn.
     */
    private void skipTurn() {
      ActionSkipTurn action = new ActionSkipTurn();
      try {
        action.playerActed(new ActionEvent(game, player, null, null,
            null));
        game.registerAction(action);
      } catch (ActionException e) {
        // there shouldn't be any problem here !
        e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.