|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--cad.simcad.worldsimulator.stats.StatComputer
This class deal witht the dispatching of statistics As of version 1.0, the dispatcher of stat is poorly made. We just quickly needed something up and running. In the future we will have to improve the way the Object statistics are stored
| Constructor Summary | |
StatComputer()
Creates new MoveModifierComputer |
|
| Method Summary | |
double |
getDeformStat(SimObject so,
Genomable g)
Get the deform stat according to the id and the Genomable object |
int |
getHeight(SimObject so,
Genomable g)
Return the height of the SimObject |
int |
getHeight(java.lang.String className,
Genomable g)
Return the height of the SimObject |
double |
getMaxSteepNessRatio(SimObject so,
Filler fil,
Genomable g)
Return the maximum steepnessRatio the PathUser can walk on the filler given in argument |
double |
getMaxSteepNessRatio(SimObject so,
Genomable g)
Return the maximum steepnessRatio the SimObject can walk on |
double |
getMoveStat(PathUser pu,
Filler tt,
double steepnessRatio)
Return the MoveStat for a PathUser and a Filler. |
int |
getWidth(SimObject so,
Genomable g)
Return the width of the SimObject |
int |
getWidth(java.lang.String className,
Genomable g)
Return the width of the SimObject given by the name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StatComputer()
| Method Detail |
public double getMoveStat(PathUser pu,
Filler tt,
double steepnessRatio)
StatServer
getMoveStat in interface StatServerpu - PathUsertt - A fillersteepnessRatio - -1 <= steepnessRatio <= 1
public double getMaxSteepNessRatio(SimObject so,
Genomable g)
StatServer
getMaxSteepNessRatio in interface StatServerso - A SimObjectg - A Genomable
public double getMaxSteepNessRatio(SimObject so,
Filler fil,
Genomable g)
StatServer
getMaxSteepNessRatio in interface StatServerfil - a Fillerso - A SimObjectg - A Genomable
public double getDeformStat(SimObject so,
Genomable g)
StatServer
getDeformStat in interface StatServerg - A Genomable Object
public int getWidth(SimObject so,
Genomable g)
StatServer
getWidth in interface StatServerso - A SimObjectg - A Genomable
public int getHeight(SimObject so,
Genomable g)
StatServer
getHeight in interface StatServerso - A SimObjectg - A Genomable object
public int getHeight(java.lang.String className,
Genomable g)
getHeight in interface StatServerg - A Genomable object
public int getWidth(java.lang.String className,
Genomable g)
getWidth in interface StatServerg - A Genomable
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||