Public Member Functions
Ea::BuySellHandler Class Reference

#include <buysellhandler.h>

Inheritance diagram for Ea::BuySellHandler:
Net::BuySellHandler EAthena::BuySellHandler TmwAthena::BuySellHandler

Public Member Functions

 BuySellHandler ()
void cleanDialogReference (const BuyDialog *const dialog) const
- Public Member Functions inherited from Net::BuySellHandler
 BuySellHandler ()
virtual ~BuySellHandler ()
virtual void requestSellList (const std::string &nick) const =0
virtual void requestBuyList (const std::string &nick) const =0
virtual void sendBuyRequest (const std::string &nick, const ShopItem *const item, const int amount) const =0
virtual void sendSellRequest (const std::string &nick, const ShopItem *const item, const int amount) const =0
virtual void close () const =0

Detailed Description

Definition at line 32 of file buysellhandler.h.

Constructor & Destructor Documentation

◆ BuySellHandler()

Ea::BuySellHandler::BuySellHandler ( )

Definition at line 33 of file buysellhandler.cpp.

34 {
36  BuySellRecv::mBuyDialog = nullptr;
37 }
const BeingId BeingId_zero
Definition: beingid.h:30
BuyDialog * mBuyDialog
Definition: buysellrecv.cpp:53

References BeingId_zero, Ea::BuySellRecv::mBuyDialog, and Ea::BuySellRecv::mNpcId.

Member Function Documentation

◆ cleanDialogReference()

void Ea::BuySellHandler::cleanDialogReference ( const BuyDialog *const  dialog) const

Implements Net::BuySellHandler.

Definition at line 39 of file buysellhandler.cpp.

40 {
41  if (BuySellRecv::mBuyDialog == dialog)
42  BuySellRecv::mBuyDialog = nullptr;
43 }

References Ea::BuySellRecv::mBuyDialog.

The documentation for this class was generated from the following files: