Class CashShop

java.lang.Object
server.CashShop
All Implemented Interfaces:
Serializable

public class CashShop extends Object implements Serializable
單一帳號在現金商城的背包狀態,管理已購道具的載入、到期檢查、禮物收受與持久化。

本類別以 ItemLoader.CASHSHOP 載入帳號的商城背包 (inventory),提供:

handling.cashshop.handler.* 處理器透過 MapleClient 取用, 並與 CashItemFactory 協作查詢商品資訊;實作 Serializable 以支援 CharacterTransfer 跨伺服器移轉。

See Also:
  • Constructor Details

  • Method Details

    • getItemsSize

      public int getItemsSize()
    • getInventory

      public List<Item> getInventory()
    • findByCashId

      public Item findByCashId(int cashId)
    • checkExpire

      public void checkExpire(MapleClient c)
    • toItem

      public Item toItem(CashItem cItem)
    • toItem

      public Item toItem(CashItem cItem, String gift)
    • toItem

      public Item toItem(CashItem cItem, int uniqueid)
    • toItem

      public Item toItem(CashItem cItem, int uniqueid, String gift)
    • addToInventory

      public void addToInventory(Item item)
    • removeFromInventory

      public void removeFromInventory(Item item)
    • gift

      public void gift(int recipient, String from, String message, int sn)
    • gift

      public void gift(int recipient, String from, String message, int sn, int uniqueid)
    • loadGifts

      public List<Pair<Item,String>> loadGifts()
    • canSendNote

      public boolean canSendNote(int uniqueid)
    • sendedNote

      public void sendedNote(int uniqueid)
    • save

      public void save() throws SQLException
      Throws:
      SQLException