ManaPlus
Public Member Functions
EAthena::BuySellHandler Class Reference

#include <buysellhandler.h>

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

Public Member Functions

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

Detailed Description

Definition at line 32 of file buysellhandler.h.

Constructor & Destructor Documentation

◆ BuySellHandler()

EAthena::BuySellHandler::BuySellHandler ( )

Definition at line 38 of file buysellhandler.cpp.

38  :
40 {
41  buySellHandler = this;
43 }
Net::BuySellHandler * buySellHandler
Definition: net.cpp:100
BuyDialog * mBuyDialog
Definition: buysellrecv.cpp:53

References buySellHandler, and Ea::BuySellRecv::mBuyDialog.

◆ ~BuySellHandler()

EAthena::BuySellHandler::~BuySellHandler ( )
virtual

Reimplemented from Net::BuySellHandler.

Definition at line 45 of file buysellhandler.cpp.

46 {
47  buySellHandler = nullptr;
48 }

References buySellHandler.

Member Function Documentation

◆ close()

void EAthena::BuySellHandler::close ( ) const
virtual

Implements Net::BuySellHandler.

Definition at line 70 of file buysellhandler.cpp.

71 {
72  if (packetVersion < 20131218)
73  return;
74 
75  createOutPacket(CMSG_NPC_SHOP_CLOSE);
76 }
int packetVersion
Definition: client.cpp:125
#define createOutPacket(name)
Definition: messageout.h:37

References createOutPacket, and packetVersion.

◆ requestBuyList()

void EAthena::BuySellHandler::requestBuyList ( const std::string &  nick) const
virtual

Implements Net::BuySellHandler.

Definition at line 54 of file buysellhandler.cpp.

55 {
56 }

◆ requestSellList()

void EAthena::BuySellHandler::requestSellList ( const std::string &  nick) const
virtual

Implements Net::BuySellHandler.

Definition at line 50 of file buysellhandler.cpp.

51 {
52 }

◆ sendBuyRequest()

void EAthena::BuySellHandler::sendBuyRequest ( const std::string &  nick,
const ShopItem *const  item,
const int  amount 
) const
virtual

Implements Net::BuySellHandler.

Definition at line 58 of file buysellhandler.cpp.

61 {
62 }

◆ sendSellRequest()

void EAthena::BuySellHandler::sendSellRequest ( const std::string &  nick,
const ShopItem *const  item,
const int  amount 
) const
virtual

Implements Net::BuySellHandler.

Definition at line 64 of file buysellhandler.cpp.

67 {
68 }

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