ManaPlus
|
#include <npchandler.h>
Public Member Functions | |
NpcHandler () | |
~NpcHandler () | |
void | talk (const Being *const being) const |
void | nextDialog (const BeingId npcId) const |
void | closeDialog (const BeingId npcId) |
void | listInput (const BeingId npcId, const unsigned char value) const |
void | integerInput (const BeingId npcId, const int value) const |
void | stringInput (const BeingId npcId, const std::string &value) const |
void | buy (const Being *const being) const |
void | buy (const BeingId beingId) const |
void | sell (const BeingId beingId) const |
void | buyItem (const BeingId beingId, const int itemId, const ItemColor color, const int amount) const |
void | buyItems (std::vector< ShopItem * > &items) const |
void | sellItem (const BeingId beingId, const int itemId, const int amount) const |
void | sellItems (std::vector< ShopItem * > &items) const |
void | completeProgressBar () const |
void | produceMix (const int nameId, const int materialId1, const int materialId2, const int materialId3) const |
void | cooking (const CookingTypeT type, const int nameId) const |
void | repair (const int index) const |
void | refine (const int index) const |
BeingId | getNpc (Net::MessageIn &msg, const NpcActionT action) |
void | identify (const int index) const |
void | selectArrow (const int nameId) const |
void | selectAutoSpell (const int skillId) const |
void | requestAirship (const std::string &mapName, const int itemId) const |
Public Member Functions inherited from Ea::NpcHandler | |
NpcDialog * | getCurrentNpcDialog () const |
Public Member Functions inherited from Net::NpcHandler | |
NpcHandler () | |
Additional Inherited Members | |
Protected Member Functions inherited from Ea::NpcHandler | |
NpcHandler () | |
Definition at line 32 of file npchandler.h.
EAthena::NpcHandler::NpcHandler | ( | ) |
|
virtual |
Reimplemented from Net::NpcHandler.
Definition at line 64 of file npchandler.cpp.
References npcHandler.
|
virtual |
Implements Net::NpcHandler.
Definition at line 137 of file npchandler.cpp.
References createOutPacket, ActorSprite::getId(), Being::getSubType(), and EAthena::NpcRecv::mNpcTypeId.
|
virtual |
Implements Net::NpcHandler.
Definition at line 147 of file npchandler.cpp.
References BeingTypeId_zero, createOutPacket, and EAthena::NpcRecv::mNpcTypeId.
|
virtual |
Implements Net::NpcHandler.
Definition at line 162 of file npchandler.cpp.
References CAST_S16, and createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 173 of file npchandler.cpp.
References ItemType::Armor, CAST_S16, createOutPacket, FOR_EACH, Item::getId(), Item::getType(), ShopItem::getUsedQuantity(), ShopItem::increaseUsedQuantity(), itemIdLen, ItemType::PetArmor, ItemType::PetEgg, ShopItem::update(), and ItemType::Weapon.
|
virtual |
Implements Net::NpcHandler.
Definition at line 85 of file npchandler.cpp.
References Window::close(), createOutPacket, Ea::NpcRecv::mDialog, and NpcDialog::mNpcDialogs.
Referenced by getNpc().
|
virtual |
Implements Net::NpcHandler.
Definition at line 273 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 290 of file npchandler.cpp.
References CAST_S16, and createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 333 of file npchandler.cpp.
References NpcAction::Close, closeDialog(), CREATEWIDGETV, localPlayer, Ea::NpcRecv::mDialog, NpcDialog::mNpcDialogs, Actions::msg(), NpcAction::Next, nextDialog(), NpcDialog::restoreCamera(), NpcDialog::saveCamera(), and LocalPlayer::stopWalking().
|
virtual |
Implements Net::NpcHandler.
Definition at line 315 of file npchandler.cpp.
References CAST_S16, and createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 110 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 102 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 79 of file npchandler.cpp.
References createOutPacket.
Referenced by getNpc().
|
virtual |
Implements Net::NpcHandler.
Definition at line 278 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 309 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 298 of file npchandler.cpp.
References CAST_S16, createOutPacket, and maxCards.
|
virtual |
Implements Net::NpcHandler.
Definition at line 375 of file npchandler.cpp.
References createOutPacket, packets_zero, packetVersionMain, and packetVersionRe.
|
virtual |
Implements Net::NpcHandler.
Definition at line 321 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 327 of file npchandler.cpp.
References CAST_S16, and createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 155 of file npchandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::NpcHandler.
Definition at line 232 of file npchandler.cpp.
References CAST_S16, createOutPacket, and INVENTORY_OFFSET.
|
virtual |
Implements Net::NpcHandler.
Definition at line 242 of file npchandler.cpp.
References CAST_S16, createOutPacket, FOR_EACH, ShopItem::getCurrentInvIndex(), ShopItem::getUsedQuantity(), ShopItem::increaseUsedQuantity(), INVENTORY_OFFSET, and ShopItem::update().
|
virtual |
Implements Net::NpcHandler.
Definition at line 118 of file npchandler.cpp.
References CAST_S16, CAST_S32, createOutPacket, and packetVersion.
|
virtual |
Implements Net::NpcHandler.
Definition at line 69 of file npchandler.cpp.
References createOutPacket, ActorSprite::getId(), Being::getSubType(), and EAthena::NpcRecv::mNpcTypeId.