Mana
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ManaServ::NpcHandler Class Referencefinal

#include <npchandler.h>

Inheritance diagram for ManaServ::NpcHandler:
ManaServ::MessageHandler Net::NpcHandler Net::MessageHandler

Public Member Functions

 NpcHandler ()
 
void handleMessage (MessageIn &msg) override
 
void startShopping (int beingId) override
 
void buy (int beingId) override
 
void sell (int beingId) override
 
void buyItem (int beingId, int itemId, int amount) override
 
void sellItem (int beingId, int itemId, int amount) override
 
void endShopping (int beingId) override
 
void talk (int npcId) override
 
void nextDialog (int npcId) override
 
void closeDialog (int npcId) override
 
void menuSelect (int npcId, int choice) override
 
void integerInput (int npcId, int value) override
 
void stringInput (int npcId, const std::string &value) override
 
void sendLetter (int npcId, const std::string &recipient, const std::string &text) override
 
- Public Member Functions inherited from ManaServ::MessageHandler
 ~MessageHandler () override
 
- Public Member Functions inherited from Net::NpcHandler
virtual ~NpcHandler ()
 

Additional Inherited Members

- Public Attributes inherited from Net::MessageHandler
const uint16_t * handledMessages = _no_messages
 

Detailed Description

Definition at line 30 of file npchandler.h.

Constructor & Destructor Documentation

◆ NpcHandler()

ManaServ::NpcHandler::NpcHandler ( )

Definition at line 40 of file npchandler.cpp.

Member Function Documentation

◆ buy()

void ManaServ::NpcHandler::buy ( int  beingId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 139 of file npchandler.cpp.

◆ buyItem()

void ManaServ::NpcHandler::buyItem ( int  beingId,
int  itemId,
int  amount 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 149 of file npchandler.cpp.

◆ closeDialog()

void ManaServ::NpcHandler::closeDialog ( int  npcId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 184 of file npchandler.cpp.

◆ endShopping()

void ManaServ::NpcHandler::endShopping ( int  beingId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 165 of file npchandler.cpp.

◆ handleMessage()

void ManaServ::NpcHandler::handleMessage ( MessageIn msg)
overridevirtual

Implements ManaServ::MessageHandler.

Definition at line 57 of file npchandler.cpp.

◆ integerInput()

void ManaServ::NpcHandler::integerInput ( int  npcId,
int  value 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 199 of file npchandler.cpp.

◆ menuSelect()

void ManaServ::NpcHandler::menuSelect ( int  npcId,
int  choice 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 191 of file npchandler.cpp.

◆ nextDialog()

void ManaServ::NpcHandler::nextDialog ( int  npcId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 177 of file npchandler.cpp.

◆ sell()

void ManaServ::NpcHandler::sell ( int  beingId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 144 of file npchandler.cpp.

◆ sellItem()

void ManaServ::NpcHandler::sellItem ( int  beingId,
int  itemId,
int  amount 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 157 of file npchandler.cpp.

◆ sendLetter()

void ManaServ::NpcHandler::sendLetter ( int  npcId,
const std::string &  recipient,
const std::string &  text 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 215 of file npchandler.cpp.

◆ startShopping()

void ManaServ::NpcHandler::startShopping ( int  beingId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 134 of file npchandler.cpp.

◆ stringInput()

void ManaServ::NpcHandler::stringInput ( int  npcId,
const std::string &  value 
)
overridevirtual

Implements Net::NpcHandler.

Definition at line 207 of file npchandler.cpp.

◆ talk()

void ManaServ::NpcHandler::talk ( int  npcId)
overridevirtual

Implements Net::NpcHandler.

Definition at line 170 of file npchandler.cpp.


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