コード例 #1
0
 @Override
 public void onStart(FirstCompGame game) {
   ZomisLog.info(this.toString());
   for (CompPlayer pl : game.getPlayers()) {
     if (pl.compatibility(DeckSourceComponent.class).failsThenWarn()) return;
     ZomisLog.info("Creating deck for " + pl);
     DeckList deck = new DeckList("Deck").add(52, "Random Card");
     DeckBuilder.createExact(pl.getComponent(DeckSourceComponent.class), deck.getCount(game));
   }
 }
コード例 #2
0
 @Override
 public void onStart(FirstCompGame game) {
   game.registerHandler(FindUsableCardsEvent.class, this::addHandCards);
   game.registerHandler(DetermineActionEvent.class, this::determineAction);
 }
コード例 #3
0
 @Override
 public void onStart(FirstCompGame game) {
   game.registerHandler(DrawCardEvent.class, this::onDrawCard, EventExecutorGWT.PRE);
 }