ManaPlus
Public Member Functions
TmwAthena::VendingHandler Class Reference

#include <vendinghandler.h>

Inheritance diagram for TmwAthena::VendingHandler:
Net::VendingHandler

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 buyItems (const Being *const being, const std::vector< ShopItem * > &items) const
 
void buy2 (const Being *const being, const int vendId, const int index, const int amount) const
 
void createShop (const std::string &name, const bool flag, const std::vector< ShopItem * > &items) const
 
- Public Member Functions inherited from Net::VendingHandler
 VendingHandler ()
 

Detailed Description

Definition at line 30 of file vendinghandler.h.

Constructor & Destructor Documentation

◆ VendingHandler()

TmwAthena::VendingHandler::VendingHandler ( )

Definition at line 29 of file vendinghandler.cpp.

30 {
31  vendingHandler = this;
32 }
Net::VendingHandler * vendingHandler
Definition: net.cpp:122

References vendingHandler.

◆ ~VendingHandler()

TmwAthena::VendingHandler::~VendingHandler ( )
virtual

Reimplemented from Net::VendingHandler.

Definition at line 34 of file vendinghandler.cpp.

35 {
36  vendingHandler = nullptr;
37 }

References vendingHandler.

Member Function Documentation

◆ buy()

void TmwAthena::VendingHandler::buy ( const Being *const  being,
const int  index,
const int  amount 
) const
virtual

Implements Net::VendingHandler.

Definition at line 47 of file vendinghandler.cpp.

50 {
51 }

◆ buy2()

void TmwAthena::VendingHandler::buy2 ( const Being *const  being,
const int  vendId,
const int  index,
const int  amount 
) const
virtual

Implements Net::VendingHandler.

Definition at line 59 of file vendinghandler.cpp.

63 {
64 }

◆ buyItems()

void TmwAthena::VendingHandler::buyItems ( const Being *const  being,
const std::vector< ShopItem * > &  items 
) const
virtual

Implements Net::VendingHandler.

Definition at line 53 of file vendinghandler.cpp.

56 {
57 }

◆ close()

void TmwAthena::VendingHandler::close ( ) const
virtual

Implements Net::VendingHandler.

Definition at line 39 of file vendinghandler.cpp.

40 {
41 }

◆ createShop()

void TmwAthena::VendingHandler::createShop ( const std::string &  name,
const bool  flag,
const std::vector< ShopItem * > &  items 
) const
virtual

Implements Net::VendingHandler.

Definition at line 66 of file vendinghandler.cpp.

70 {
71 }

◆ open()

void TmwAthena::VendingHandler::open ( const Being *const  being) const
virtual

Implements Net::VendingHandler.

Definition at line 43 of file vendinghandler.cpp.

44 {
45 }

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