@Override public Set evaluate(GameState state, Identified thisObject) { Tracker tracker = state.getTracker(Tracker.class); // if "a player" cast two or more spells this turn -- a single value // in the map must be >= 2 for (int spellCount : tracker.getValue(state).values()) if (spellCount >= 2) return NonEmpty.set; return Empty.set; }
@Override public Set evaluate(GameState state, Identified thisObject) { Tracker tracker = state.getTracker(Tracker.class); if (tracker.getValue(state).isEmpty()) return NonEmpty.set; return Empty.set; }
@Override public org.rnd.jmagic.engine.Set evaluate(GameState state, Identified thisObject) { Set ret = new Set(); for (int ID : state.getTracker(Tracker.class).getValue(state)) ret.add(state.get(ID)); return ret; }