@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)); } }
@Override public void onStart(FirstCompGame game) { game.registerHandler(FindUsableCardsEvent.class, this::addHandCards); game.registerHandler(DetermineActionEvent.class, this::determineAction); }
@Override public void onStart(FirstCompGame game) { game.registerHandler(DrawCardEvent.class, this::onDrawCard, EventExecutorGWT.PRE); }