Interface IShopService

  • All Known Implementing Classes:
    ShopService

    public interface IShopService
    The shop interface for buying goods at the shop.
    • Method Detail

      • getName

        java.lang.String getName()
        Get the shop name.
        Returns:
        The name.
      • buyItem

        IFuture<ItemInfo> buyItem​(java.lang.String item,
                                  double price)
        Buy an item.
        Parameters:
        item - The item.
      • getCatalog

        IFuture<ItemInfo[]> getCatalog()
        Get the item catalog.
        Returns:
        The catalog.