summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-27 16:26:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-27 16:26:21 +0300
commit32947c0634ec582f6d641402433d2037f5087a36 (patch)
tree776923ebcb5f52f663a622bac8b578d20833c511 /src/gui/windows/shopwindow.h
parent8b1e42a9e0d311d9c393ebceef1d508cbc8ad324 (diff)
downloadplus-32947c0634ec582f6d641402433d2037f5087a36.tar.gz
plus-32947c0634ec582f6d641402433d2037f5087a36.tar.bz2
plus-32947c0634ec582f6d641402433d2037f5087a36.tar.xz
plus-32947c0634ec582f6d641402433d2037f5087a36.zip
Fix compilation with eathena only.
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r--src/gui/windows/shopwindow.h19
1 files changed, 11 insertions, 8 deletions
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();