ManaPlus
Public Member Functions
Net::NpcHandler Class Referenceabstract

#include <npchandler.h>

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

Public Member Functions

 NpcHandler ()
 
virtual ~NpcHandler ()
 
virtual BeingId getNpc (Net::MessageIn &msg, const NpcActionT action)=0
 
virtual void talk (const Being *const being) const =0
 
virtual void nextDialog (const BeingId npcId) const =0
 
virtual void closeDialog (const BeingId npcId)=0
 
virtual void listInput (const BeingId npcId, const unsigned char value) const =0
 
virtual void integerInput (const BeingId npcId, const int value) const =0
 
virtual void stringInput (const BeingId npcId, const std::string &value) const =0
 
virtual void buy (const Being *const being) const =0
 
virtual void buy (const BeingId beingId) const =0
 
virtual void sell (const BeingId beingId) const =0
 
virtual void buyItem (const BeingId beingId, const int itemId, const ItemColor color, const int amount) const =0
 
virtual void buyItems (std::vector< ShopItem * > &items) const =0
 
virtual void sellItem (const BeingId beingId, const int itemId, const int amount) const =0
 
virtual void sellItems (std::vector< ShopItem * > &items) const =0
 
virtual void completeProgressBar () const =0
 
virtual void produceMix (const int nameId, const int materialId1, const int materialId2, const int materialId3) const =0
 
virtual void cooking (const CookingTypeT type, const int nameId) const =0
 
virtual void repair (const int index) const =0
 
virtual void refine (const int index) const =0
 
virtual void identify (const int index) const =0
 
virtual void selectArrow (const int nameId) const =0
 
virtual void selectAutoSpell (const int skillId) const =0
 
virtual void requestAirship (const std::string &mapName, const int itemId) const =0
 
virtual NpcDialoggetCurrentNpcDialog () const =0
 

Detailed Description

Definition at line 49 of file npchandler.h.

Constructor & Destructor Documentation

◆ NpcHandler()

Net::NpcHandler::NpcHandler ( )
inline

Definition at line 52 of file npchandler.h.

53  { }

◆ ~NpcHandler()

virtual Net::NpcHandler::~NpcHandler ( )
inlinevirtual

Reimplemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Definition at line 57 of file npchandler.h.

58  { }

Member Function Documentation

◆ buy() [1/2]

virtual void Net::NpcHandler::buy ( const Being *const  being) const
pure virtual

◆ buy() [2/2]

virtual void Net::NpcHandler::buy ( const BeingId  beingId) const
pure virtual

◆ buyItem()

virtual void Net::NpcHandler::buyItem ( const BeingId  beingId,
const int  itemId,
const ItemColor  color,
const int  amount 
) const
pure virtual

Implemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Referenced by BuyDialog::action().

◆ buyItems()

virtual void Net::NpcHandler::buyItems ( std::vector< ShopItem * > &  items) const
pure virtual

Implemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Referenced by BuyDialog::action().

◆ closeDialog()

virtual void Net::NpcHandler::closeDialog ( const BeingId  npcId)
pure virtual

◆ completeProgressBar()

virtual void Net::NpcHandler::completeProgressBar ( ) const
pure virtual

◆ cooking()

virtual void Net::NpcHandler::cooking ( const CookingTypeT  type,
const int  nameId 
) const
pure virtual

◆ getCurrentNpcDialog()

virtual NpcDialog* Net::NpcHandler::getCurrentNpcDialog ( ) const
pure virtual

◆ getNpc()

virtual BeingId Net::NpcHandler::getNpc ( Net::MessageIn msg,
const NpcActionT  action 
)
pure virtual

◆ identify()

virtual void Net::NpcHandler::identify ( const int  index) const
pure virtual

◆ integerInput()

virtual void Net::NpcHandler::integerInput ( const BeingId  npcId,
const int  value 
) const
pure virtual

Implemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Referenced by NpcDialog::action().

◆ listInput()

virtual void Net::NpcHandler::listInput ( const BeingId  npcId,
const unsigned char  value 
) const
pure virtual

Implemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Referenced by NpcDialog::action().

◆ nextDialog()

virtual void Net::NpcHandler::nextDialog ( const BeingId  npcId) const
pure virtual

◆ produceMix()

virtual void Net::NpcHandler::produceMix ( const int  nameId,
const int  materialId1,
const int  materialId2,
const int  materialId3 
) const
pure virtual

◆ refine()

virtual void Net::NpcHandler::refine ( const int  index) const
pure virtual

◆ repair()

virtual void Net::NpcHandler::repair ( const int  index) const
pure virtual

◆ requestAirship()

virtual void Net::NpcHandler::requestAirship ( const std::string &  mapName,
const int  itemId 
) const
pure virtual

◆ selectArrow()

virtual void Net::NpcHandler::selectArrow ( const int  nameId) const
pure virtual

◆ selectAutoSpell()

virtual void Net::NpcHandler::selectAutoSpell ( const int  skillId) const
pure virtual

◆ sell()

virtual void Net::NpcHandler::sell ( const BeingId  beingId) const
pure virtual

◆ sellItem()

virtual void Net::NpcHandler::sellItem ( const BeingId  beingId,
const int  itemId,
const int  amount 
) const
pure virtual

◆ sellItems()

virtual void Net::NpcHandler::sellItems ( std::vector< ShopItem * > &  items) const
pure virtual

◆ stringInput()

virtual void Net::NpcHandler::stringInput ( const BeingId  npcId,
const std::string &  value 
) const
pure virtual

◆ talk()

virtual void Net::NpcHandler::talk ( const Being *const  being) const
pure virtual

Implemented in TmwAthena::NpcHandler, and EAthena::NpcHandler.

Referenced by Being::talkTo().


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