public class ShopCapa
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ShopCapa.SellGoal |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ItemInfo> |
catalog
The shop catalog.
|
protected java.lang.String |
shopname
The shop name.
|
Constructor and Description |
---|
ShopCapa(java.lang.String shopname,
java.util.List<ItemInfo> catalog)
Create a shop capability.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemInfo> |
getCatalog()
Get the catalog.
|
double |
getMoney() |
java.lang.String |
getShopname()
Get the shop name.
|
void |
sell(ShopCapa.SellGoal goal)
Plan for handling a sell goal.
|
void |
setMoney(double money) |
protected java.lang.String shopname
protected java.util.List<ItemInfo> catalog
public ShopCapa(java.lang.String shopname, java.util.List<ItemInfo> catalog)
public double getMoney()
public void setMoney(double money)
public java.lang.String getShopname()
public java.util.List<ItemInfo> getCatalog()
public void sell(ShopCapa.SellGoal goal)
goal
- The goal.