|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.items.BasicItem
jurpe.items.MoneyBag
public class MoneyBag
MoneyBag is the representation of an item containing money.
| Constructor Summary | |
|---|---|
MoneyBag(int money)
Constructor |
|
| Method Summary | |
|---|---|
void |
addMoney(int amountOfMoney)
Add money to this money bag |
static MoneyBag |
createRandom(ItemValueType ivt)
Create a new money bag |
int |
getAmount()
Get the amount of money |
java.lang.String |
getDescription()
Get the description |
void |
removeMoney(int amountOfMoney)
Remove some money from this money bag |
| Methods inherited from class jurpe.items.BasicItem |
|---|
clone, compareTo, getCommonDescription, getCost, getName, getType, getWeight, isItemRandom, isItemUsable, isItemWearable, setRandom, toString, toStringWCost, unwear, use, warningMessage, wear |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MoneyBag(int money)
money - How many money this bag contains| Method Detail |
|---|
public int getAmount()
public java.lang.String getDescription()
getDescription in class BasicItempublic void addMoney(int amountOfMoney)
amountOfMoney - Amount of money to addpublic void removeMoney(int amountOfMoney)
amountOfMoney - Money to be removedpublic static MoneyBag createRandom(ItemValueType ivt)
ivt - The value (rare, common...) of this item
|
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 | |||||||||