public class GameFightNew<P,A> extends Object
| Constructor and Description |
|---|
GameFightNew() |
| Modifier and Type | Method and Description |
|---|---|
Stream<Fight<P,A>> |
createEvenFightStream(List<P> ais,
int numFights,
Function<ArenaParams<P>,A> arenaCreator) |
FightRes<Fight<P,A>> |
fightRandom(String name,
List<P> fighters,
int count,
FightIndexer<Fight<P,A>> indexer,
Function<ArenaParams<P>,A> arenaCreator,
Consumer<Fight<P,A>> process) |
<T> FightRes<T> |
processStream(String name,
Stream<T> fightStream,
FightIndexer<T> indexer) |
Stream<Fight<P,A>> |
produceRandomStream(List<P> fighters,
Function<ArenaParams<P>,A> arenaCreator) |
public Stream<Fight<P,A>> createEvenFightStream(List<P> ais, int numFights, Function<ArenaParams<P>,A> arenaCreator)
public <T> FightRes<T> processStream(String name, Stream<T> fightStream, FightIndexer<T> indexer)
public Stream<Fight<P,A>> produceRandomStream(List<P> fighters, Function<ArenaParams<P>,A> arenaCreator)
Copyright © 2015. All rights reserved.