Class ShopCapa


  • public class ShopCapa
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  ShopCapa.SellGoal  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<ItemInfo> catalog
      The shop catalog.
      protected java.lang.String shopname
      The shop name.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShopCapa​(java.lang.String shopname, java.util.List<ItemInfo> catalog)
      Create a shop capability.
    • Field Detail

      • shopname

        protected java.lang.String shopname
        The shop name.
      • catalog

        protected java.util.List<ItemInfo> catalog
        The shop catalog.
    • Constructor Detail

      • ShopCapa

        public ShopCapa​(java.lang.String shopname,
                        java.util.List<ItemInfo> catalog)
        Create a shop capability.
    • Method Detail

      • getMoney

        public double getMoney()
      • setMoney

        public void setMoney​(double money)
      • getShopname

        public java.lang.String getShopname()
        Get the shop name.
      • getCatalog

        public java.util.List<ItemInfo> getCatalog()
        Get the catalog.
      • sell

        public void sell​(ShopCapa.SellGoal goal)
        Plan for handling a sell goal.
        Parameters:
        goal - The goal.