| Package | Description |
|---|---|
| net.zomis.fight.ext | |
| net.zomis.fight.ext.rating |
| Modifier and Type | Method and Description |
|---|---|
static <A> WinResult |
WinResult.resultFor(A winner,
A me,
A drawValue) |
WinResult |
WinResult.reversed() |
static WinResult |
WinResult.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WinResult[] |
WinResult.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Function<FNode<Fight<A,B>>,WinResult> |
FightCollectors.fightResult(int myIndex,
A drawValue,
Function<FNode<Fight<A,B>>,A> winner) |
static Collector<WinResult,?,WinStats> |
FightCollectors.stats() |
| Modifier and Type | Method and Description |
|---|---|
void |
WinStats.add(WinResult result) |
void |
RatingContext.addFight(P player1,
P player2,
WinResult result) |
double |
RatingElo.calculateRatingChange(double userRating,
double opponentRating,
WinResult result) |
| Modifier and Type | Method and Description |
|---|---|
<A> Map<P,Double> |
RatingContext.calculateRatings(Stream<A> fightStream,
Function<A,P> who1,
Function<A,P> who2,
Function<A,WinResult> ratingCalc) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
RatingProgress.add(T t,
Function<T,P> who1,
Function<T,P> who2,
Function<T,WinResult> ratingCalc) |
| Constructor and Description |
|---|
RatingCollector(Function<T,WinResult> ratingCalc,
Function<P,Double> startRating,
Function<T,P> who1,
Function<T,P> who2)
Deprecated.
|
Copyright © 2014. All rights reserved.