|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.engine.stats.AbstractStat
public abstract class AbstractStat
Returns an intelligent formatter, and returns value for alliances by summing our value for all players in the alliance.
| Field Summary | |
|---|---|
protected static java.text.DecimalFormat |
DECIMAL_FORMAT
|
| Constructor Summary | |
|---|---|
AbstractStat()
|
|
| Method Summary | |
|---|---|
java.text.NumberFormat |
getFormatter()
|
double |
getValue(java.lang.String alliance,
GameData data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface games.strategy.engine.stats.IStat |
|---|
getName, getValue |
| Field Detail |
|---|
protected static final java.text.DecimalFormat DECIMAL_FORMAT
| Constructor Detail |
|---|
public AbstractStat()
| Method Detail |
|---|
public double getValue(java.lang.String alliance,
GameData data)
getValue in interface IStatpublic java.text.NumberFormat getFormatter()
getFormatter in interface IStat
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||