#ifndef __INC_METIN_II_GAME_SHOP_SECONDARY_COIN_H__ #define __INC_METIN_II_GAME_SHOP_SECONDARY_COIN_H__ #include "typedef.h" #include "shop.h" struct SShopTable; typedef struct SShopTableEx : SShopTable { std::string name; EShopCoinType coinType; } TShopTableEx; class CGroupNode; // È®Àå shop. // ¸íµµÀüÀ» È­Æó·Î ¾µ ¼ö ÀÖ°í, ¾ÆÀÌÅÛÀ» ¿©·¯ ÅÇ¿¡ ³ª´² ¹èÄ¡ÇÒ ¼ö ÀÖ´Ù. // ´Ü, pc ¼¥Àº ±¸ÇöÇÏÁö ¾ÊÀ½. // Ŭ¶ó¿Í Åë½ÅÇÒ ¶§¿¡ ÅÇÀº pos 45 ´ÜÀ§·Î ±¸ºÐ. // ±âÁ¸ ¼¥ÀÇ m_itemVectorÀº »ç¿ëÇÏÁö ¾Ê´Â´Ù. class CShopEx: public CShop { public: bool Create(DWORD dwVnum, DWORD dwNPCVnum); bool AddShopTable(TShopTableEx& shopTable); virtual bool AddGuest(LPCHARACTER ch,DWORD owner_vid, bool bOtherEmpire); virtual void SetPCShop(LPCHARACTER ch) { return; } virtual bool IsPCShop() { return false; } virtual int Buy(LPCHARACTER ch, BYTE pos); virtual bool IsSellingItem(DWORD itemID) { return false; } size_t GetTabCount() { return m_vec_shopTabs.size(); } private: std::vector m_vec_shopTabs; }; typedef CShopEx* LPSHOPEX; #endif