Examples of chooseFrom()


Examples of cero.ui.ChoiceMaker.chooseFrom()

        // choosing the new color
        List<String> col = Arrays.asList(CardUno.colors);
        ChoiceMaker choiceMaker = getEvent().getPlayer()
            .getChoiceMaker();
        if (choiceMaker != null) {
          List<Object> choice = choiceMaker.chooseFrom(
              "Quelle est la nouvelle couleur ?", col, 1);

          cu.setActiveColor(col.indexOf(choice.iterator().next()));
        } else
          throw new RuntimeException(
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.