|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfreerails.world.top.TransactionAggregator
jfreerails.controller.NetWorthCalculator
public class NetWorthCalculator
A TransactionAggregator that calculates the networth of a player by totalling the value of their assets.
| Field Summary |
|---|
| Fields inherited from class jfreerails.world.top.TransactionAggregator |
|---|
monetaryTotals, principal, runningTotal, w |
| Constructor Summary | |
|---|---|
NetWorthCalculator(ReadOnlyWorld w,
FreerailsPrincipal principal)
|
|
| Method Summary | |
|---|---|
protected boolean |
condition(int transactionID)
Returns true if we should count the specified transactions. |
| Methods inherited from class jfreerails.world.top.TransactionAggregator |
|---|
calculateValue, calculateValues, getTimes, incrementRunningTotal, setTimes, setTotalsArrayLength, storeRunningTotal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetWorthCalculator(ReadOnlyWorld w,
FreerailsPrincipal principal)
| Method Detail |
|---|
protected boolean condition(int transactionID)
TransactionAggregator
condition in class TransactionAggregator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||