Otclient  14/8/2020
ProtocolGame Class Reference

#include <protocolgame.h>

Inheritance diagram for ProtocolGame:
Collaboration diagram for ProtocolGame:

Public Member Functions

void login (const std::string &accountName, const std::string &accountPassword, const std::string &host, uint16 port, const std::string &characterName, const std::string &authenticatorToken, const std::string &sessionKey)
 
void send (const OutputMessagePtr &outputMessage)
 
void sendExtendedOpcode (uint8 opcode, const std::string &buffer)
 
void sendLoginPacket (uint challengeTimestamp, uint8 challengeRandom)
 
void sendEnterGame ()
 
void sendLogout ()
 
void sendPing ()
 
void sendPingBack ()
 
void sendAutoWalk (const std::vector< Otc::Direction > &path)
 
void sendWalkNorth ()
 
void sendWalkEast ()
 
void sendWalkSouth ()
 
void sendWalkWest ()
 
void sendStop ()
 
void sendWalkNorthEast ()
 
void sendWalkSouthEast ()
 
void sendWalkSouthWest ()
 
void sendWalkNorthWest ()
 
void sendTurnNorth ()
 
void sendTurnEast ()
 
void sendTurnSouth ()
 
void sendTurnWest ()
 
void sendEquipItem (int itemId, int countOrSubType)
 
void sendMove (const Position &fromPos, int thingId, int stackpos, const Position &toPos, int count)
 
void sendInspectNpcTrade (int itemId, int count)
 
void sendBuyItem (int itemId, int subType, int amount, bool ignoreCapacity, bool buyWithBackpack)
 
void sendSellItem (int itemId, int subType, int amount, bool ignoreEquipped)
 
void sendCloseNpcTrade ()
 
void sendRequestTrade (const Position &pos, int thingId, int stackpos, uint creatureId)
 
void sendInspectTrade (bool counterOffer, int index)
 
void sendAcceptTrade ()
 
void sendRejectTrade ()
 
void sendUseItem (const Position &position, int itemId, int stackpos, int index)
 
void sendUseItemWith (const Position &fromPos, int itemId, int fromStackPos, const Position &toPos, int toThingId, int toStackPos)
 
void sendUseOnCreature (const Position &pos, int thingId, int stackpos, uint creatureId)
 
void sendRotateItem (const Position &pos, int thingId, int stackpos)
 
void sendCloseContainer (int containerId)
 
void sendUpContainer (int containerId)
 
void sendEditText (uint id, const std::string &text)
 
void sendEditList (uint id, int doorId, const std::string &text)
 
void sendLook (const Position &position, int thingId, int stackpos)
 
void sendLookCreature (uint creatureId)
 
void sendTalk (Otc::MessageMode mode, int channelId, const std::string &receiver, const std::string &message)
 
void sendRequestChannels ()
 
void sendJoinChannel (int channelId)
 
void sendLeaveChannel (int channelId)
 
void sendOpenPrivateChannel (const std::string &receiver)
 
void sendOpenRuleViolation (const std::string &reporter)
 
void sendCloseRuleViolation (const std::string &reporter)
 
void sendCancelRuleViolation ()
 
void sendCloseNpcChannel ()
 
void sendChangeFightModes (Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeFight, Otc::PVPModes pvpMode)
 
void sendAttack (uint creatureId, uint seq)
 
void sendFollow (uint creatureId, uint seq)
 
void sendInviteToParty (uint creatureId)
 
void sendJoinParty (uint creatureId)
 
void sendRevokeInvitation (uint creatureId)
 
void sendPassLeadership (uint creatureId)
 
void sendLeaveParty ()
 
void sendShareExperience (bool active)
 
void sendOpenOwnChannel ()
 
void sendInviteToOwnChannel (const std::string &name)
 
void sendExcludeFromOwnChannel (const std::string &name)
 
void sendCancelAttackAndFollow ()
 
void sendRefreshContainer (int containerId)
 
void sendRequestOutfit ()
 
void sendChangeOutfit (const Outfit &outfit)
 
void sendMountStatus (bool mount)
 
void sendAddVip (const std::string &name)
 
void sendRemoveVip (uint playerId)
 
void sendEditVip (uint playerId, const std::string &description, int iconId, bool notifyLogin)
 
void sendBugReport (const std::string &comment)
 
void sendRuleViolation (const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment)
 
void sendDebugReport (const std::string &a, const std::string &b, const std::string &c, const std::string &d)
 
void sendRequestQuestLog ()
 
void sendRequestQuestLine (int questId)
 
void sendNewNewRuleViolation (int reason, int action, const std::string &characterName, const std::string &comment, const std::string &translation)
 
void sendRequestItemInfo (int itemId, int subType, int index)
 
void sendAnswerModalDialog (uint32 dialog, int button, int choice)
 
void sendBrowseField (const Position &position)
 
void sendSeekInContainer (int cid, int index)
 
void sendBuyStoreOffer (int offerId, int productType, const std::string &name)
 
void sendRequestTransactionHistory (int page, int entriesPerPage)
 
void sendRequestStoreOffers (const std::string &categoryName, int serviceType)
 
void sendOpenStore (int serviceType, const std::string &category)
 
void sendTransferCoins (const std::string &recipient, int amount)
 
void sendOpenTransactionHistory (int entriesPerPage)
 
void sendChangeMapAwareRange (int xrange, int yrange)
 
void addPosition (const OutputMessagePtr &msg, const Position &position)
 
void setMapDescription (const InputMessagePtr &msg, int x, int y, int z, int width, int height)
 
int setFloorDescription (const InputMessagePtr &msg, int x, int y, int z, int width, int height, int offset, int skip)
 
int setTileDescription (const InputMessagePtr &msg, Position position)
 
Outfit getOutfit (const InputMessagePtr &msg)
 
ThingPtr getThing (const InputMessagePtr &msg)
 
ThingPtr getMappedThing (const InputMessagePtr &msg)
 
CreaturePtr getCreature (const InputMessagePtr &msg, int type=0)
 
StaticTextPtr getStaticText (const InputMessagePtr &msg, int type=0)
 
ItemPtr getItem (const InputMessagePtr &msg, int id=0)
 
Position getPosition (const InputMessagePtr &msg)
 
- Public Member Functions inherited from Protocol
 Protocol ()
 
virtual ~Protocol ()
 
void connect (const std::string &host, uint16 port)
 
void disconnect ()
 
bool isConnected ()
 
bool isConnecting ()
 
ticks_t getElapsedTicksSinceLastRead ()
 
ConnectionPtr getConnection ()
 
void setConnection (const ConnectionPtr &connection)
 
void generateXteaKey ()
 
void setXteaKey (uint32 a, uint32 b, uint32 c, uint32 d)
 
std::vector< uint32getXteaKey ()
 
void enableXteaEncryption ()
 
void enableChecksum ()
 
virtual void recv ()
 
ProtocolPtr asProtocol ()
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Protected Member Functions

void onConnect ()
 
void onRecv (const InputMessagePtr &inputMessage)
 
void onError (const boost::system::error_code &error)
 

Friends

class Game
 

Additional Inherited Members

- Protected Attributes inherited from Protocol
uint32 m_xteaKey [4]
 

Detailed Description

Definition at line 31 of file protocolgame.h.

Member Function Documentation

◆ addPosition()

void ProtocolGame::addPosition ( const OutputMessagePtr msg,
const Position position 
)

Definition at line 951 of file protocolgamesend.cpp.

Here is the caller graph for this function:

◆ getCreature()

CreaturePtr ProtocolGame::getCreature ( const InputMessagePtr msg,
int  type = 0 
)

Definition at line 2203 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItem()

ItemPtr ProtocolGame::getItem ( const InputMessagePtr msg,
int  id = 0 
)

Definition at line 2352 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMappedThing()

ThingPtr ProtocolGame::getMappedThing ( const InputMessagePtr msg)

Definition at line 2178 of file protocolgameparse.cpp.

Here is the call graph for this function:

◆ getOutfit()

Outfit ProtocolGame::getOutfit ( const InputMessagePtr msg)

Definition at line 2104 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPosition()

Position ProtocolGame::getPosition ( const InputMessagePtr msg)

Definition at line 2394 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStaticText()

StaticTextPtr ProtocolGame::getStaticText ( const InputMessagePtr msg,
int  type = 0 
)

Definition at line 2381 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getThing()

ThingPtr ProtocolGame::getThing ( const InputMessagePtr msg)

Definition at line 2160 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ login()

void ProtocolGame::login ( const std::string &  accountName,
const std::string &  accountPassword,
const std::string &  host,
uint16  port,
const std::string &  characterName,
const std::string &  authenticatorToken,
const std::string &  sessionKey 
)

Definition at line 29 of file protocolgame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onConnect()

void ProtocolGame::onConnect ( )
protectedvirtual

Reimplemented from Protocol.

Definition at line 40 of file protocolgame.cpp.

Here is the call graph for this function:

◆ onError()

void ProtocolGame::onError ( const boost::system::error_code &  error)
protectedvirtual

Reimplemented from Protocol.

Definition at line 74 of file protocolgame.cpp.

Here is the call graph for this function:

◆ onRecv()

void ProtocolGame::onRecv ( const InputMessagePtr inputMessage)
protectedvirtual

Reimplemented from Protocol.

Definition at line 56 of file protocolgame.cpp.

Here is the call graph for this function:

◆ send()

void ProtocolGame::send ( const OutputMessagePtr outputMessage)
virtual

Reimplemented from Protocol.

Definition at line 30 of file protocolgamesend.cpp.

Here is the call graph for this function:

◆ sendAcceptTrade()

void ProtocolGame::sendAcceptTrade ( )

Definition at line 372 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendAddVip()

void ProtocolGame::sendAddVip ( const std::string &  name)

Definition at line 736 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendAnswerModalDialog()

void ProtocolGame::sendAnswerModalDialog ( uint32  dialog,
int  button,
int  choice 
)

Definition at line 833 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendAttack()

void ProtocolGame::sendAttack ( uint  creatureId,
uint  seq 
)

Definition at line 591 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendAutoWalk()

void ProtocolGame::sendAutoWalk ( const std::vector< Otc::Direction > &  path)

Definition at line 157 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendBrowseField()

void ProtocolGame::sendBrowseField ( const Position position)

Definition at line 843 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendBugReport()

void ProtocolGame::sendBugReport ( const std::string &  comment)

Definition at line 763 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendBuyItem()

void ProtocolGame::sendBuyItem ( int  itemId,
int  subType,
int  amount,
bool  ignoreCapacity,
bool  buyWithBackpack 
)

Definition at line 319 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendBuyStoreOffer()

void ProtocolGame::sendBuyStoreOffer ( int  offerId,
int  productType,
const std::string &  name 
)

Definition at line 866 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCancelAttackAndFollow()

void ProtocolGame::sendCancelAttackAndFollow ( )

Definition at line 683 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCancelRuleViolation()

void ProtocolGame::sendCancelRuleViolation ( )

Definition at line 565 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendChangeFightModes()

void ProtocolGame::sendChangeFightModes ( Otc::FightModes  fightMode,
Otc::ChaseModes  chaseMode,
bool  safeFight,
Otc::PVPModes  pvpMode 
)

Definition at line 579 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendChangeMapAwareRange()

void ProtocolGame::sendChangeMapAwareRange ( int  xrange,
int  yrange 
)

Definition at line 939 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendChangeOutfit()

void ProtocolGame::sendChangeOutfit ( const Outfit outfit)

Definition at line 705 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCloseContainer()

void ProtocolGame::sendCloseContainer ( int  containerId)

Definition at line 431 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCloseNpcChannel()

void ProtocolGame::sendCloseNpcChannel ( )

Definition at line 572 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCloseNpcTrade()

void ProtocolGame::sendCloseNpcTrade ( )

Definition at line 345 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCloseRuleViolation()

void ProtocolGame::sendCloseRuleViolation ( const std::string &  reporter)

Definition at line 557 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendDebugReport()

void ProtocolGame::sendDebugReport ( const std::string &  a,
const std::string &  b,
const std::string &  c,
const std::string &  d 
)

Definition at line 785 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEditList()

void ProtocolGame::sendEditList ( uint  id,
int  doorId,
const std::string &  text 
)

Definition at line 456 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEditText()

void ProtocolGame::sendEditText ( uint  id,
const std::string &  text 
)

Definition at line 447 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEditVip()

void ProtocolGame::sendEditVip ( uint  playerId,
const std::string &  description,
int  iconId,
bool  notifyLogin 
)

Definition at line 752 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEnterGame()

void ProtocolGame::sendEnterGame ( )

Definition at line 125 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEquipItem()

void ProtocolGame::sendEquipItem ( int  itemId,
int  countOrSubType 
)

Definition at line 289 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendExcludeFromOwnChannel()

void ProtocolGame::sendExcludeFromOwnChannel ( const std::string &  name)

Definition at line 675 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendExtendedOpcode()

void ProtocolGame::sendExtendedOpcode ( uint8  opcode,
const std::string &  buffer 
)

Definition at line 38 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendFollow()

void ProtocolGame::sendFollow ( uint  creatureId,
uint  seq 
)

Definition at line 601 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendInspectNpcTrade()

void ProtocolGame::sendInspectNpcTrade ( int  itemId,
int  count 
)

Definition at line 310 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendInspectTrade()

void ProtocolGame::sendInspectTrade ( bool  counterOffer,
int  index 
)

Definition at line 363 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendInviteToOwnChannel()

void ProtocolGame::sendInviteToOwnChannel ( const std::string &  name)

Definition at line 667 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendInviteToParty()

void ProtocolGame::sendInviteToParty ( uint  creatureId)

Definition at line 611 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendJoinChannel()

void ProtocolGame::sendJoinChannel ( int  channelId)

Definition at line 525 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendJoinParty()

void ProtocolGame::sendJoinParty ( uint  creatureId)

Definition at line 619 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLeaveChannel()

void ProtocolGame::sendLeaveChannel ( int  channelId)

Definition at line 533 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLeaveParty()

void ProtocolGame::sendLeaveParty ( )

Definition at line 643 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLoginPacket()

void ProtocolGame::sendLoginPacket ( uint  challengeTimestamp,
uint8  challengeRandom 
)

Definition at line 51 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLogout()

void ProtocolGame::sendLogout ( )

Definition at line 132 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLook()

void ProtocolGame::sendLook ( const Position position,
int  thingId,
int  stackpos 
)

Definition at line 466 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendLookCreature()

void ProtocolGame::sendLookCreature ( uint  creatureId)

Definition at line 476 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendMountStatus()

void ProtocolGame::sendMountStatus ( bool  mount)

Definition at line 724 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendMove()

void ProtocolGame::sendMove ( const Position fromPos,
int  thingId,
int  stackpos,
const Position toPos,
int  count 
)

Definition at line 298 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendNewNewRuleViolation()

void ProtocolGame::sendNewNewRuleViolation ( int  reason,
int  action,
const std::string &  characterName,
const std::string &  comment,
const std::string &  translation 
)

Definition at line 811 of file protocolgamesend.cpp.

Here is the call graph for this function:

◆ sendOpenOwnChannel()

void ProtocolGame::sendOpenOwnChannel ( )

Definition at line 660 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendOpenPrivateChannel()

void ProtocolGame::sendOpenPrivateChannel ( const std::string &  receiver)

Definition at line 541 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendOpenRuleViolation()

void ProtocolGame::sendOpenRuleViolation ( const std::string &  reporter)

Definition at line 549 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendOpenStore()

void ProtocolGame::sendOpenStore ( int  serviceType,
const std::string &  category 
)

Definition at line 907 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendOpenTransactionHistory()

void ProtocolGame::sendOpenTransactionHistory ( int  entriesPerPage)

Definition at line 929 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendPassLeadership()

void ProtocolGame::sendPassLeadership ( uint  creatureId)

Definition at line 635 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendPing()

void ProtocolGame::sendPing ( )

Definition at line 139 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendPingBack()

void ProtocolGame::sendPingBack ( )

Definition at line 150 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRefreshContainer()

void ProtocolGame::sendRefreshContainer ( int  containerId)

Definition at line 690 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRejectTrade()

void ProtocolGame::sendRejectTrade ( )

Definition at line 379 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRemoveVip()

void ProtocolGame::sendRemoveVip ( uint  playerId)

Definition at line 744 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestChannels()

void ProtocolGame::sendRequestChannels ( )

Definition at line 518 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestItemInfo()

void ProtocolGame::sendRequestItemInfo ( int  itemId,
int  subType,
int  index 
)

Definition at line 823 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestOutfit()

void ProtocolGame::sendRequestOutfit ( )

Definition at line 698 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestQuestLine()

void ProtocolGame::sendRequestQuestLine ( int  questId)

Definition at line 803 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestQuestLog()

void ProtocolGame::sendRequestQuestLog ( )

Definition at line 796 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestStoreOffers()

void ProtocolGame::sendRequestStoreOffers ( const std::string &  categoryName,
int  serviceType 
)

Definition at line 894 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestTrade()

void ProtocolGame::sendRequestTrade ( const Position pos,
int  thingId,
int  stackpos,
uint  creatureId 
)

Definition at line 352 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRequestTransactionHistory()

void ProtocolGame::sendRequestTransactionHistory ( int  page,
int  entriesPerPage 
)

Definition at line 879 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRevokeInvitation()

void ProtocolGame::sendRevokeInvitation ( uint  creatureId)

Definition at line 627 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRotateItem()

void ProtocolGame::sendRotateItem ( const Position pos,
int  thingId,
int  stackpos 
)

Definition at line 421 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRuleViolation()

void ProtocolGame::sendRuleViolation ( const std::string &  target,
int  reason,
int  action,
const std::string &  comment,
const std::string &  statement,
int  statementId,
bool  ipBanishment 
)

Definition at line 771 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendSeekInContainer()

void ProtocolGame::sendSeekInContainer ( int  cid,
int  index 
)

Definition at line 854 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendSellItem()

void ProtocolGame::sendSellItem ( int  itemId,
int  subType,
int  amount,
bool  ignoreEquipped 
)

Definition at line 331 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendShareExperience()

void ProtocolGame::sendShareExperience ( bool  active)

Definition at line 650 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendStop()

void ProtocolGame::sendStop ( )

Definition at line 226 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTalk()

void ProtocolGame::sendTalk ( Otc::MessageMode  mode,
int  channelId,
const std::string &  receiver,
const std::string &  message 
)

Definition at line 484 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTransferCoins()

void ProtocolGame::sendTransferCoins ( const std::string &  recipient,
int  amount 
)

Definition at line 920 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTurnEast()

void ProtocolGame::sendTurnEast ( )

Definition at line 268 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTurnNorth()

void ProtocolGame::sendTurnNorth ( )

Definition at line 261 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTurnSouth()

void ProtocolGame::sendTurnSouth ( )

Definition at line 275 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTurnWest()

void ProtocolGame::sendTurnWest ( )

Definition at line 282 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendUpContainer()

void ProtocolGame::sendUpContainer ( int  containerId)

Definition at line 439 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendUseItem()

void ProtocolGame::sendUseItem ( const Position position,
int  itemId,
int  stackpos,
int  index 
)

Definition at line 386 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendUseItemWith()

void ProtocolGame::sendUseItemWith ( const Position fromPos,
int  itemId,
int  fromStackPos,
const Position toPos,
int  toThingId,
int  toStackPos 
)

Definition at line 397 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendUseOnCreature()

void ProtocolGame::sendUseOnCreature ( const Position pos,
int  thingId,
int  stackpos,
uint  creatureId 
)

Definition at line 410 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkEast()

void ProtocolGame::sendWalkEast ( )

Definition at line 205 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkNorth()

void ProtocolGame::sendWalkNorth ( )

Definition at line 198 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkNorthEast()

void ProtocolGame::sendWalkNorthEast ( )

Definition at line 233 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkNorthWest()

void ProtocolGame::sendWalkNorthWest ( )

Definition at line 254 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkSouth()

void ProtocolGame::sendWalkSouth ( )

Definition at line 212 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkSouthEast()

void ProtocolGame::sendWalkSouthEast ( )

Definition at line 240 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkSouthWest()

void ProtocolGame::sendWalkSouthWest ( )

Definition at line 247 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendWalkWest()

void ProtocolGame::sendWalkWest ( )

Definition at line 219 of file protocolgamesend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFloorDescription()

int ProtocolGame::setFloorDescription ( const InputMessagePtr msg,
int  x,
int  y,
int  z,
int  width,
int  height,
int  offset,
int  skip 
)

Definition at line 2064 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMapDescription()

void ProtocolGame::setMapDescription ( const InputMessagePtr msg,
int  x,
int  y,
int  z,
int  width,
int  height 
)

Definition at line 2044 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTileDescription()

int ProtocolGame::setTileDescription ( const InputMessagePtr msg,
Position  position 
)

Definition at line 2080 of file protocolgameparse.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Game

friend class Game
friend

Definition at line 131 of file protocolgame.h.


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