Package cero.games.base

Examples of cero.games.base.ActionLookAtZone


    round.getSubRounds().add(subRound);
    getRounds().add(round);

    // adding the actions
    getActions().add(new ActionLookAtCards());
    getActions().add(new ActionLookAtZone());
    getActions().add(new ActionPlayACard());
  }
View Full Code Here


public class UnoGame extends GameBase {
 
  public UnoGame(){
    getRounds().add(new RoundBase());
   
    getActions().add(new ActionLookAtZone());
    getActions().add(new ActionPick());
    getActions().add(new ActionPlayACard());
    getActions().add(new ActionSkipTurn());
  }
View Full Code Here

        if (zone == null) {
          System.out.println("zone inconnue");
          return false;
        }
        else {
          ActionLookAtZone action = new ActionLookAtZone();
          try {
            action.playerActed(new ActionEvent(CommandLineLauncher
                .getGame(), CommandLineLauncher.getCurrentPlayer(),
                zone, null, null));
          } catch (ActionException e) {
            e.printStackTrace();
          }
          CommandLineLauncher.getGame().registerAction(action);
          currentAction = action;
        }
      }
      else if (split.length == 3) {
        Zone zone = CommandLineLauncher.getGame().getPlayers().get(
            Integer.valueOf(split[1])).getZones().get(split[2]);
        if (zone == null) {
          System.out.println("zone inconnue");
          return false;
        }
        else {
          ActionLookAtZone action = new ActionLookAtZone();
          currentAction = action;
          try {
            action.playerActed(new ActionEvent(CommandLineLauncher
                .getGame(), CommandLineLauncher.getCurrentPlayer(),
                zone, null, null));
          } catch (ActionException e) {
            e.printStackTrace();
          }
View Full Code Here

    System.out.println("Player played action "+action.getActionName());
  }

  public void onExecuted(Action action) {
    System.out.println("Cards in the zone "+action.getEvent().getZoneFrom().getName());
    ActionLookAtZone actionLAC = (ActionLookAtZone) action;
    if ((actionLAC).equals(currentAction)) {
      print(actionLAC.getCards());
    }
  }
View Full Code Here

        if (zone == null) {
          System.out.println("zone \"" + parametres + "\" inconnue");
          return false;
        }
      }
      ActionLookAtZone action = new ActionLookAtZone();
      try {
        action.playerActed(new ActionEvent(CommandLineLauncher
            .getGame(), CommandLineLauncher.getCurrentPlayer(),
            zone, null, null));
      } catch (ActionException e) {
        e.printStackTrace();
      }
View Full Code Here

  }

  public void onExecuted(Action action) {
    System.out.println("Cards in the zone : "
        + action.getEvent().getZoneFrom().getName());
    ActionLookAtZone actionLAC = (ActionLookAtZone) action;
    if ((actionLAC).equals(currentAction)) {
      print(actionLAC.getCards());
    }
  }
View Full Code Here

TOP

Related Classes of cero.games.base.ActionLookAtZone

Copyright © 2018 www.massapicom. 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.