From 32947c0634ec582f6d641402433d2037f5087a36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Feb 2015 16:26:21 +0300 Subject: Fix compilation with eathena only. --- src/gui/windows/shopwindow.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/gui/windows/shopwindow.h') diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h index cff596f5c..09b7da951 100644 --- a/src/gui/windows/shopwindow.h +++ b/src/gui/windows/shopwindow.h @@ -118,16 +118,17 @@ class ShopWindow final : public Window, void saveList() const; - void announce(ShopItems *const list, const int mode); - - void giveList(const std::string &nick, const int mode); - +#ifdef TMWA_SUPPORT void setAcceptPlayer(const std::string &name) { mAcceptPlayer = name; } const std::string &getAcceptPlayer() const A_WARN_UNUSED { return mAcceptPlayer; } + void announce(ShopItems *const list, const int mode); + + void giveList(const std::string &nick, const int mode); + void sendMessage(const std::string &nick, std::string data, const bool random = false); @@ -135,16 +136,16 @@ class ShopWindow final : public Window, void processRequest(const std::string &nick, std::string data, const int mode); + void updateTimes(); + + static bool checkFloodCounter(int &counterTime) A_WARN_UNUSED; bool findShopItem(const ShopItem *const shopItem, const int mode) const A_WARN_UNUSED; +#endif static int sumAmount(const Item *const shopItem) A_WARN_UNUSED; - void updateTimes(); - - static bool checkFloodCounter(int &counterTime) A_WARN_UNUSED; - bool isShopEmpty() const A_WARN_UNUSED; #ifdef EATHENA_SUPPORT @@ -160,7 +161,9 @@ class ShopWindow final : public Window, #endif private: +#ifdef TMWA_SUPPORT void startTrade(); +#endif void updateSelection(); -- cgit v1.2.3-70-g09d2