|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.generation.CostGenerator
public final class CostGenerator
This class generates costs for randomly created items.
| Constructor Summary | |
|---|---|
CostGenerator(int bc,
int um,
int lm)
Constructor. |
|
CostGenerator(int bc,
int um,
int lm,
double umw,
int lmw)
Constructor |
|
| Method Summary | |
|---|---|
int |
getCost()
Get the cost |
int |
getReduction()
Get reduction |
static void |
main(java.lang.String[] args)
|
void |
setLowerModifier(int lm)
Set lower modifier |
void |
setUpperModifier(int um)
Set upper modifier |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CostGenerator(int bc,
int um,
int lm)
bc - Basic Cost for item (minimum value)um - Parameter that exponentially affects cost (ie: IQ + 2, 2 is
upperModifier)lm - Parameter that lowers the cost (IE: in armors, their weight)
public CostGenerator(int bc,
int um,
int lm,
double umw,
int lmw)
bc - Basic Cost for item (minimum value)um - Parameter that exponentially affects cost (ie: IQ + 2, 2 is
upperModifier)umw - Weight for upper Modifierlm - Parameter that lowers the cost (IE: in armors, their weight)lmw - Weight for lower Modifier| Method Detail |
|---|
public void setUpperModifier(int um)
um - UpperModifierpublic void setLowerModifier(int lm)
lm - UpperModifierpublic int getCost()
public int getReduction()
public static void main(java.lang.String[] args)
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||