ManaPlus
|
#include <vendinghandler.h>
Public Member Functions | |
VendingHandler () | |
~VendingHandler () | |
void | close () const |
void | open (const Being *const being) const |
void | buy (const Being *const being, const int index, const int amount) const |
void | buy2 (const Being *const being, const int vendId, const int index, const int amount) const |
void | buyItems (const Being *const being, const std::vector< ShopItem * > &items) const |
void | createShop (const std::string &name, const bool flag, const std::vector< ShopItem * > &items) const |
Public Member Functions inherited from Net::VendingHandler | |
VendingHandler () | |
Definition at line 29 of file vendinghandler.h.
EAthena::VendingHandler::VendingHandler | ( | ) |
Definition at line 42 of file vendinghandler.cpp.
References EAthena::VendingRecv::mBuyDialog, and vendingHandler.
|
virtual |
Reimplemented from Net::VendingHandler.
Definition at line 48 of file vendinghandler.cpp.
References vendingHandler.
|
virtual |
Implements Net::VendingHandler.
Definition at line 68 of file vendinghandler.cpp.
References CAST_S16, createOutPacket, and ActorSprite::getId().
|
virtual |
Implements Net::VendingHandler.
Definition at line 117 of file vendinghandler.cpp.
References CAST_S16, createOutPacket, and ActorSprite::getId().
|
virtual |
Implements Net::VendingHandler.
Definition at line 82 of file vendinghandler.cpp.
References CAST_S16, createOutPacket, FOR_EACH, ActorSprite::getId(), Item::getInvIndex(), ShopItem::getUsedQuantity(), Item::increaseQuantity(), ShopItem::increaseUsedQuantity(), and ShopItem::update().
|
virtual |
Implements Net::VendingHandler.
Definition at line 53 of file vendinghandler.cpp.
References createOutPacket, and PlayerInfo::enableVending().
|
virtual |
Implements Net::VendingHandler.
Definition at line 133 of file vendinghandler.cpp.
References CAST_S16, CAST_S8, createOutPacket, FOR_EACH, Item::getInvIndex(), ShopItem::getPrice(), Item::getQuantity(), and INVENTORY_OFFSET.
|
virtual |
Implements Net::VendingHandler.
Definition at line 59 of file vendinghandler.cpp.
References createOutPacket, and ActorSprite::getId().