Otclient  14/8/2020
protocolgame.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
23 #ifndef PROTOCOLGAME_H
24 #define PROTOCOLGAME_H
25 
26 #include "declarations.h"
27 #include "protocolcodes.h"
28 #include <framework/net/protocol.h>
29 #include "creature.h"
30 
31 class ProtocolGame : public Protocol
32 {
33 public:
34  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);
35  void send(const OutputMessagePtr& outputMessage);
36 
37  void sendExtendedOpcode(uint8 opcode, const std::string& buffer);
38  void sendLoginPacket(uint challengeTimestamp, uint8 challengeRandom);
39  void sendEnterGame();
40  void sendLogout();
41  void sendPing();
42  void sendPingBack();
43  void sendAutoWalk(const std::vector<Otc::Direction>& path);
44  void sendWalkNorth();
45  void sendWalkEast();
46  void sendWalkSouth();
47  void sendWalkWest();
48  void sendStop();
49  void sendWalkNorthEast();
50  void sendWalkSouthEast();
51  void sendWalkSouthWest();
52  void sendWalkNorthWest();
53  void sendTurnNorth();
54  void sendTurnEast();
55  void sendTurnSouth();
56  void sendTurnWest();
57  void sendEquipItem(int itemId, int countOrSubType);
58  void sendMove(const Position& fromPos, int thingId, int stackpos, const Position& toPos, int count);
59  void sendInspectNpcTrade(int itemId, int count);
60  void sendBuyItem(int itemId, int subType, int amount, bool ignoreCapacity, bool buyWithBackpack);
61  void sendSellItem(int itemId, int subType, int amount, bool ignoreEquipped);
62  void sendCloseNpcTrade();
63  void sendRequestTrade(const Position& pos, int thingId, int stackpos, uint creatureId);
64  void sendInspectTrade(bool counterOffer, int index);
65  void sendAcceptTrade();
66  void sendRejectTrade();
67  void sendUseItem(const Position& position, int itemId, int stackpos, int index);
68  void sendUseItemWith(const Position& fromPos, int itemId, int fromStackPos, const Position& toPos, int toThingId, int toStackPos);
69  void sendUseOnCreature(const Position& pos, int thingId, int stackpos, uint creatureId);
70  void sendRotateItem(const Position& pos, int thingId, int stackpos);
71  void sendCloseContainer(int containerId);
72  void sendUpContainer(int containerId);
73  void sendEditText(uint id, const std::string& text);
74  void sendEditList(uint id, int doorId, const std::string& text);
75  void sendLook(const Position& position, int thingId, int stackpos);
76  void sendLookCreature(uint creatureId);
77  void sendTalk(Otc::MessageMode mode, int channelId, const std::string& receiver, const std::string& message);
78  void sendRequestChannels();
79  void sendJoinChannel(int channelId);
80  void sendLeaveChannel(int channelId);
81  void sendOpenPrivateChannel(const std::string& receiver);
82  void sendOpenRuleViolation(const std::string& reporter);
83  void sendCloseRuleViolation(const std::string& reporter);
85  void sendCloseNpcChannel();
86  void sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeFight, Otc::PVPModes pvpMode);
87  void sendAttack(uint creatureId, uint seq);
88  void sendFollow(uint creatureId, uint seq);
89  void sendInviteToParty(uint creatureId);
90  void sendJoinParty(uint creatureId);
91  void sendRevokeInvitation(uint creatureId);
92  void sendPassLeadership(uint creatureId);
93  void sendLeaveParty();
94  void sendShareExperience(bool active);
95  void sendOpenOwnChannel();
96  void sendInviteToOwnChannel(const std::string& name);
97  void sendExcludeFromOwnChannel(const std::string& name);
99  void sendRefreshContainer(int containerId);
100  void sendRequestOutfit();
101  void sendChangeOutfit(const Outfit& outfit);
102  void sendMountStatus(bool mount);
103  void sendAddVip(const std::string& name);
104  void sendRemoveVip(uint playerId);
105  void sendEditVip(uint playerId, const std::string& description, int iconId, bool notifyLogin);
106  void sendBugReport(const std::string& comment);
107  void sendRuleViolation(const std::string& target, int reason, int action, const std::string& comment, const std::string& statement, int statementId, bool ipBanishment);
108  void sendDebugReport(const std::string& a, const std::string& b, const std::string& c, const std::string& d);
109  void sendRequestQuestLog();
110  void sendRequestQuestLine(int questId);
111  void sendNewNewRuleViolation(int reason, int action, const std::string& characterName, const std::string& comment, const std::string& translation);
112  void sendRequestItemInfo(int itemId, int subType, int index);
113  void sendAnswerModalDialog(uint32 dialog, int button, int choice);
114  void sendBrowseField(const Position& position);
115  void sendSeekInContainer(int cid, int index);
116  void sendBuyStoreOffer(int offerId, int productType, const std::string& name);
117  void sendRequestTransactionHistory(int page, int entriesPerPage);
118  void sendRequestStoreOffers(const std::string& categoryName, int serviceType);
119  void sendOpenStore(int serviceType, const std::string &category);
120  void sendTransferCoins(const std::string& recipient, int amount);
121  void sendOpenTransactionHistory(int entriesPerPage);
122 
123  // otclient only
124  void sendChangeMapAwareRange(int xrange, int yrange);
125 
126 protected:
127  void onConnect();
128  void onRecv(const InputMessagePtr& inputMessage);
129  void onError(const boost::system::error_code& error);
130 
131  friend class Game;
132 
133 public:
134  void addPosition(const OutputMessagePtr& msg, const Position& position);
135 
136 private:
137  void parseStoreButtonIndicators(const InputMessagePtr& msg);
138  void parseSetStoreDeepLink(const InputMessagePtr& msg);
139  void parseStore(const InputMessagePtr& msg);
140  void parseStoreError(const InputMessagePtr& msg);
141  void parseStoreTransactionHistory(const InputMessagePtr& msg);
142  void parseStoreOffers(const InputMessagePtr& msg);
143  void parseCompleteStorePurchase(const InputMessagePtr& msg);
144  void parseRequestPurchaseData(const InputMessagePtr& msg);
145  void parseCoinBalance(const InputMessagePtr& msg);
146  void parseCoinBalanceUpdating(const InputMessagePtr& msg);
147  void parseBlessings(const InputMessagePtr& msg);
148  void parseUnjustifiedStats(const InputMessagePtr& msg);
149  void parsePvpSituations(const InputMessagePtr& msg);
150  void parsePreset(const InputMessagePtr& msg);
151  void parseCreatureType(const InputMessagePtr& msg);
152  void parsePlayerHelpers(const InputMessagePtr& msg);
153  void parseMessage(const InputMessagePtr& msg);
154  void parsePendingGame(const InputMessagePtr& msg);
155  void parseEnterGame(const InputMessagePtr& msg);
156  void parseLogin(const InputMessagePtr& msg);
157  void parseGMActions(const InputMessagePtr& msg);
158  void parseUpdateNeeded(const InputMessagePtr& msg);
159  void parseLoginError(const InputMessagePtr& msg);
160  void parseLoginAdvice(const InputMessagePtr& msg);
161  void parseLoginWait(const InputMessagePtr& msg);
162  void parseLoginToken(const InputMessagePtr& msg);
163  void parsePing(const InputMessagePtr& msg);
164  void parsePingBack(const InputMessagePtr& msg);
165  void parseChallenge(const InputMessagePtr& msg);
166  void parseDeath(const InputMessagePtr& msg);
167  void parseMapDescription(const InputMessagePtr& msg);
168  void parseMapMoveNorth(const InputMessagePtr& msg);
169  void parseMapMoveEast(const InputMessagePtr& msg);
170  void parseMapMoveSouth(const InputMessagePtr& msg);
171  void parseMapMoveWest(const InputMessagePtr& msg);
172  void parseUpdateTile(const InputMessagePtr& msg);
173  void parseTileAddThing(const InputMessagePtr& msg);
174  void parseTileTransformThing(const InputMessagePtr& msg);
175  void parseTileRemoveThing(const InputMessagePtr& msg);
176  void parseCreatureMove(const InputMessagePtr& msg);
177  void parseOpenContainer(const InputMessagePtr& msg);
178  void parseCloseContainer(const InputMessagePtr& msg);
179  void parseContainerAddItem(const InputMessagePtr& msg);
180  void parseContainerUpdateItem(const InputMessagePtr& msg);
181  void parseContainerRemoveItem(const InputMessagePtr& msg);
182  void parseAddInventoryItem(const InputMessagePtr& msg);
183  void parseRemoveInventoryItem(const InputMessagePtr& msg);
184  void parseOpenNpcTrade(const InputMessagePtr& msg);
185  void parsePlayerGoods(const InputMessagePtr& msg);
186  void parseCloseNpcTrade(const InputMessagePtr&);
187  void parseWorldLight(const InputMessagePtr& msg);
188  void parseMagicEffect(const InputMessagePtr& msg);
189  void parseAnimatedText(const InputMessagePtr& msg);
190  void parseDistanceMissile(const InputMessagePtr& msg);
191  void parseCreatureMark(const InputMessagePtr& msg);
192  void parseTrappers(const InputMessagePtr& msg);
193  void parseCreatureHealth(const InputMessagePtr& msg);
194  void parseCreatureLight(const InputMessagePtr& msg);
195  void parseCreatureOutfit(const InputMessagePtr& msg);
196  void parseCreatureSpeed(const InputMessagePtr& msg);
197  void parseCreatureSkulls(const InputMessagePtr& msg);
198  void parseCreatureShields(const InputMessagePtr& msg);
199  void parseCreatureUnpass(const InputMessagePtr& msg);
200  void parseEditText(const InputMessagePtr& msg);
201  void parseEditList(const InputMessagePtr& msg);
202  void parsePremiumTrigger(const InputMessagePtr& msg);
203  void parsePlayerInfo(const InputMessagePtr& msg);
204  void parsePlayerStats(const InputMessagePtr& msg);
205  void parsePlayerSkills(const InputMessagePtr& msg);
206  void parsePlayerState(const InputMessagePtr& msg);
207  void parsePlayerCancelAttack(const InputMessagePtr& msg);
208  void parsePlayerModes(const InputMessagePtr& msg);
209  void parseSpellCooldown(const InputMessagePtr& msg);
210  void parseSpellGroupCooldown(const InputMessagePtr& msg);
211  void parseMultiUseCooldown(const InputMessagePtr& msg);
212  void parseTalk(const InputMessagePtr& msg);
213  void parseChannelList(const InputMessagePtr& msg);
214  void parseOpenChannel(const InputMessagePtr& msg);
215  void parseOpenPrivateChannel(const InputMessagePtr& msg);
216  void parseOpenOwnPrivateChannel(const InputMessagePtr& msg);
217  void parseCloseChannel(const InputMessagePtr& msg);
218  void parseRuleViolationChannel(const InputMessagePtr& msg);
219  void parseRuleViolationRemove(const InputMessagePtr& msg);
220  void parseRuleViolationCancel(const InputMessagePtr& msg);
221  void parseRuleViolationLock(const InputMessagePtr& msg);
222  void parseOwnTrade(const InputMessagePtr& msg);
223  void parseCounterTrade(const InputMessagePtr& msg);
224  void parseCloseTrade(const InputMessagePtr&);
225  void parseTextMessage(const InputMessagePtr& msg);
226  void parseCancelWalk(const InputMessagePtr& msg);
227  void parseWalkWait(const InputMessagePtr& msg);
228  void parseFloorChangeUp(const InputMessagePtr& msg);
229  void parseFloorChangeDown(const InputMessagePtr& msg);
230  void parseOpenOutfitWindow(const InputMessagePtr& msg);
231  void parseVipAdd(const InputMessagePtr& msg);
232  void parseVipState(const InputMessagePtr& msg);
233  void parseVipLogout(const InputMessagePtr& msg);
234  void parseTutorialHint(const InputMessagePtr& msg);
235  void parseAutomapFlag(const InputMessagePtr& msg);
236  void parseQuestLog(const InputMessagePtr& msg);
237  void parseQuestLine(const InputMessagePtr& msg);
238  void parseChannelEvent(const InputMessagePtr& msg);
239  void parseItemInfo(const InputMessagePtr& msg);
240  void parsePlayerInventory(const InputMessagePtr& msg);
241  void parseModalDialog(const InputMessagePtr& msg);
242  void parseExtendedOpcode(const InputMessagePtr& msg);
243  void parseChangeMapAwareRange(const InputMessagePtr& msg);
244  void parseCreaturesMark(const InputMessagePtr& msg);
245 
246 public:
247  void setMapDescription(const InputMessagePtr& msg, int x, int y, int z, int width, int height);
248  int setFloorDescription(const InputMessagePtr& msg, int x, int y, int z, int width, int height, int offset, int skip);
249  int setTileDescription(const InputMessagePtr& msg, Position position);
250 
251  Outfit getOutfit(const InputMessagePtr& msg);
252  ThingPtr getThing(const InputMessagePtr& msg);
254  CreaturePtr getCreature(const InputMessagePtr& msg, int type = 0);
255  StaticTextPtr getStaticText(const InputMessagePtr& msg, int type = 0);
256  ItemPtr getItem(const InputMessagePtr& msg, int id = 0);
258 
259 private:
260  stdext::boolean<false> m_enableSendExtendedOpcode;
261  stdext::boolean<false> m_gameInitialized;
262  stdext::boolean<false> m_mapKnown;
263  stdext::boolean<true> m_firstRecv;
264  std::string m_accountName;
265  std::string m_accountPassword;
266  std::string m_authenticatorToken;
267  std::string m_sessionKey;
268  std::string m_characterName;
269  LocalPlayerPtr m_localPlayer;
270 };
271 
272 #endif
protocolcodes.h
ProtocolGame::sendWalkSouthWest
void sendWalkSouthWest()
Definition: protocolgamesend.cpp:247
ProtocolGame::sendChangeMapAwareRange
void sendChangeMapAwareRange(int xrange, int yrange)
Definition: protocolgamesend.cpp:939
ProtocolGame::sendCancelAttackAndFollow
void sendCancelAttackAndFollow()
Definition: protocolgamesend.cpp:683
ProtocolGame::sendLeaveParty
void sendLeaveParty()
Definition: protocolgamesend.cpp:643
ProtocolGame::sendExcludeFromOwnChannel
void sendExcludeFromOwnChannel(const std::string &name)
Definition: protocolgamesend.cpp:675
ProtocolGame::sendBugReport
void sendBugReport(const std::string &comment)
Definition: protocolgamesend.cpp:763
ProtocolGame::sendWalkSouthEast
void sendWalkSouthEast()
Definition: protocolgamesend.cpp:240
z
gc sort z
Definition: CMakeLists.txt:176
ProtocolGame::sendJoinChannel
void sendJoinChannel(int channelId)
Definition: protocolgamesend.cpp:525
Otc::ChaseModes
ChaseModes
Definition: const.h:211
ProtocolGame::sendCloseNpcChannel
void sendCloseNpcChannel()
Definition: protocolgamesend.cpp:572
ProtocolGame::sendLeaveChannel
void sendLeaveChannel(int channelId)
Definition: protocolgamesend.cpp:533
ProtocolGame::sendNewNewRuleViolation
void sendNewNewRuleViolation(int reason, int action, const std::string &characterName, const std::string &comment, const std::string &translation)
Definition: protocolgamesend.cpp:811
ProtocolGame
Definition: protocolgame.h:31
ProtocolGame::sendPing
void sendPing()
Definition: protocolgamesend.cpp:139
ProtocolGame::setMapDescription
void setMapDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height)
Definition: protocolgameparse.cpp:2044
ProtocolGame::sendCancelRuleViolation
void sendCancelRuleViolation()
Definition: protocolgamesend.cpp:565
uint32
uint32_t uint32
Definition: types.h:35
ProtocolGame::sendSeekInContainer
void sendSeekInContainer(int cid, int index)
Definition: protocolgamesend.cpp:854
ProtocolGame::sendOpenOwnChannel
void sendOpenOwnChannel()
Definition: protocolgamesend.cpp:660
ProtocolGame::getOutfit
Outfit getOutfit(const InputMessagePtr &msg)
Definition: protocolgameparse.cpp:2104
ProtocolGame::sendUseOnCreature
void sendUseOnCreature(const Position &pos, int thingId, int stackpos, uint creatureId)
Definition: protocolgamesend.cpp:410
ProtocolGame::sendBuyItem
void sendBuyItem(int itemId, int subType, int amount, bool ignoreCapacity, bool buyWithBackpack)
Definition: protocolgamesend.cpp:319
ProtocolGame::getThing
ThingPtr getThing(const InputMessagePtr &msg)
Definition: protocolgameparse.cpp:2160
ProtocolGame::addPosition
void addPosition(const OutputMessagePtr &msg, const Position &position)
Definition: protocolgamesend.cpp:951
ProtocolGame::send
void send(const OutputMessagePtr &outputMessage)
Definition: protocolgamesend.cpp:30
ProtocolGame::sendLoginPacket
void sendLoginPacket(uint challengeTimestamp, uint8 challengeRandom)
Definition: protocolgamesend.cpp:51
ProtocolGame::onConnect
void onConnect()
Definition: protocolgame.cpp:40
ProtocolGame::sendMove
void sendMove(const Position &fromPos, int thingId, int stackpos, const Position &toPos, int count)
Definition: protocolgamesend.cpp:298
ProtocolGame::sendPassLeadership
void sendPassLeadership(uint creatureId)
Definition: protocolgamesend.cpp:635
ProtocolGame::sendRotateItem
void sendRotateItem(const Position &pos, int thingId, int stackpos)
Definition: protocolgamesend.cpp:421
ProtocolGame::sendWalkWest
void sendWalkWest()
Definition: protocolgamesend.cpp:219
ProtocolGame::sendAnswerModalDialog
void sendAnswerModalDialog(uint32 dialog, int button, int choice)
Definition: protocolgamesend.cpp:833
ProtocolGame::sendAddVip
void sendAddVip(const std::string &name)
Definition: protocolgamesend.cpp:736
ProtocolGame::sendDebugReport
void sendDebugReport(const std::string &a, const std::string &b, const std::string &c, const std::string &d)
Definition: protocolgamesend.cpp:785
stdext::boolean< false >
ProtocolGame::sendInviteToOwnChannel
void sendInviteToOwnChannel(const std::string &name)
Definition: protocolgamesend.cpp:667
ProtocolGame::sendRuleViolation
void sendRuleViolation(const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment)
Definition: protocolgamesend.cpp:771
creature.h
ProtocolGame::sendFollow
void sendFollow(uint creatureId, uint seq)
Definition: protocolgamesend.cpp:601
Protocol
Definition: protocol.h:34
protocol.h
uint16
uint16_t uint16
Definition: types.h:36
ProtocolGame::sendTurnWest
void sendTurnWest()
Definition: protocolgamesend.cpp:282
ProtocolGame::getItem
ItemPtr getItem(const InputMessagePtr &msg, int id=0)
Definition: protocolgameparse.cpp:2352
ProtocolGame::sendRequestOutfit
void sendRequestOutfit()
Definition: protocolgamesend.cpp:698
ProtocolGame::onRecv
void onRecv(const InputMessagePtr &inputMessage)
Definition: protocolgame.cpp:56
ProtocolGame::sendOpenTransactionHistory
void sendOpenTransactionHistory(int entriesPerPage)
Definition: protocolgamesend.cpp:929
ProtocolGame::sendBuyStoreOffer
void sendBuyStoreOffer(int offerId, int productType, const std::string &name)
Definition: protocolgamesend.cpp:866
ProtocolGame::sendTurnNorth
void sendTurnNorth()
Definition: protocolgamesend.cpp:261
ProtocolGame::sendCloseContainer
void sendCloseContainer(int containerId)
Definition: protocolgamesend.cpp:431
ProtocolGame::sendSellItem
void sendSellItem(int itemId, int subType, int amount, bool ignoreEquipped)
Definition: protocolgamesend.cpp:331
ProtocolGame::sendShareExperience
void sendShareExperience(bool active)
Definition: protocolgamesend.cpp:650
ProtocolGame::sendRequestItemInfo
void sendRequestItemInfo(int itemId, int subType, int index)
Definition: protocolgamesend.cpp:823
Outfit
Definition: outfit.h:29
ProtocolGame::sendStop
void sendStop()
Definition: protocolgamesend.cpp:226
ProtocolGame::sendEditVip
void sendEditVip(uint playerId, const std::string &description, int iconId, bool notifyLogin)
Definition: protocolgamesend.cpp:752
ProtocolGame::sendRequestStoreOffers
void sendRequestStoreOffers(const std::string &categoryName, int serviceType)
Definition: protocolgamesend.cpp:894
declarations.h
ProtocolGame::sendChangeFightModes
void sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeFight, Otc::PVPModes pvpMode)
Definition: protocolgamesend.cpp:579
uint
unsigned int uint
Definition: types.h:31
Otc::MessageMode
MessageMode
Definition: const.h:286
ProtocolGame::sendInspectNpcTrade
void sendInspectNpcTrade(int itemId, int count)
Definition: protocolgamesend.cpp:310
ProtocolGame::sendLookCreature
void sendLookCreature(uint creatureId)
Definition: protocolgamesend.cpp:476
ProtocolGame::sendEditList
void sendEditList(uint id, int doorId, const std::string &text)
Definition: protocolgamesend.cpp:456
ProtocolGame::sendAutoWalk
void sendAutoWalk(const std::vector< Otc::Direction > &path)
Definition: protocolgamesend.cpp:157
ProtocolGame::sendRemoveVip
void sendRemoveVip(uint playerId)
Definition: protocolgamesend.cpp:744
ProtocolGame::sendCloseRuleViolation
void sendCloseRuleViolation(const std::string &reporter)
Definition: protocolgamesend.cpp:557
ProtocolGame::sendWalkEast
void sendWalkEast()
Definition: protocolgamesend.cpp:205
ProtocolGame::sendWalkNorthEast
void sendWalkNorthEast()
Definition: protocolgamesend.cpp:233
Position
Definition: position.h:33
ProtocolGame::sendRequestQuestLog
void sendRequestQuestLog()
Definition: protocolgamesend.cpp:796
ProtocolGame::sendRequestTrade
void sendRequestTrade(const Position &pos, int thingId, int stackpos, uint creatureId)
Definition: protocolgamesend.cpp:352
ProtocolGame::getCreature
CreaturePtr getCreature(const InputMessagePtr &msg, int type=0)
Definition: protocolgameparse.cpp:2203
ProtocolGame::sendInviteToParty
void sendInviteToParty(uint creatureId)
Definition: protocolgamesend.cpp:611
ProtocolGame::sendAttack
void sendAttack(uint creatureId, uint seq)
Definition: protocolgamesend.cpp:591
ProtocolGame::sendPingBack
void sendPingBack()
Definition: protocolgamesend.cpp:150
ProtocolGame::setTileDescription
int setTileDescription(const InputMessagePtr &msg, Position position)
Definition: protocolgameparse.cpp:2080
ProtocolGame::sendAcceptTrade
void sendAcceptTrade()
Definition: protocolgamesend.cpp:372
Otc::PVPModes
PVPModes
Definition: const.h:216
ProtocolGame::sendWalkNorth
void sendWalkNorth()
Definition: protocolgamesend.cpp:198
ProtocolGame::sendWalkNorthWest
void sendWalkNorthWest()
Definition: protocolgamesend.cpp:254
ProtocolGame::sendOpenRuleViolation
void sendOpenRuleViolation(const std::string &reporter)
Definition: protocolgamesend.cpp:549
ProtocolGame::sendRejectTrade
void sendRejectTrade()
Definition: protocolgamesend.cpp:379
ProtocolGame::getPosition
Position getPosition(const InputMessagePtr &msg)
Definition: protocolgameparse.cpp:2394
ProtocolGame::sendTurnSouth
void sendTurnSouth()
Definition: protocolgamesend.cpp:275
ProtocolGame::sendTalk
void sendTalk(Otc::MessageMode mode, int channelId, const std::string &receiver, const std::string &message)
Definition: protocolgamesend.cpp:484
ProtocolGame::sendInspectTrade
void sendInspectTrade(bool counterOffer, int index)
Definition: protocolgamesend.cpp:363
ProtocolGame::onError
void onError(const boost::system::error_code &error)
Definition: protocolgame.cpp:74
ProtocolGame::sendEquipItem
void sendEquipItem(int itemId, int countOrSubType)
Definition: protocolgamesend.cpp:289
ProtocolGame::sendLook
void sendLook(const Position &position, int thingId, int stackpos)
Definition: protocolgamesend.cpp:466
ProtocolGame::sendExtendedOpcode
void sendExtendedOpcode(uint8 opcode, const std::string &buffer)
Definition: protocolgamesend.cpp:38
ProtocolGame::sendRevokeInvitation
void sendRevokeInvitation(uint creatureId)
Definition: protocolgamesend.cpp:627
ProtocolGame::sendMountStatus
void sendMountStatus(bool mount)
Definition: protocolgamesend.cpp:724
ProtocolGame::sendBrowseField
void sendBrowseField(const Position &position)
Definition: protocolgamesend.cpp:843
ProtocolGame::sendUseItemWith
void sendUseItemWith(const Position &fromPos, int itemId, int fromStackPos, const Position &toPos, int toThingId, int toStackPos)
Definition: protocolgamesend.cpp:397
stdext::shared_object_ptr
Definition: shared_object.h:39
ProtocolGame::sendTransferCoins
void sendTransferCoins(const std::string &recipient, int amount)
Definition: protocolgamesend.cpp:920
ProtocolGame::sendJoinParty
void sendJoinParty(uint creatureId)
Definition: protocolgamesend.cpp:619
ProtocolGame::sendOpenPrivateChannel
void sendOpenPrivateChannel(const std::string &receiver)
Definition: protocolgamesend.cpp:541
ProtocolGame::sendRequestTransactionHistory
void sendRequestTransactionHistory(int page, int entriesPerPage)
Definition: protocolgamesend.cpp:879
ProtocolGame::sendEditText
void sendEditText(uint id, const std::string &text)
Definition: protocolgamesend.cpp:447
ProtocolGame::sendTurnEast
void sendTurnEast()
Definition: protocolgamesend.cpp:268
ProtocolGame::sendRequestQuestLine
void sendRequestQuestLine(int questId)
Definition: protocolgamesend.cpp:803
ProtocolGame::sendChangeOutfit
void sendChangeOutfit(const Outfit &outfit)
Definition: protocolgamesend.cpp:705
ProtocolGame::sendCloseNpcTrade
void sendCloseNpcTrade()
Definition: protocolgamesend.cpp:345
ProtocolGame::sendEnterGame
void sendEnterGame()
Definition: protocolgamesend.cpp:125
Otc::FightModes
FightModes
Definition: const.h:205
ProtocolGame::sendOpenStore
void sendOpenStore(int serviceType, const std::string &category)
Definition: protocolgamesend.cpp:907
ProtocolGame::getMappedThing
ThingPtr getMappedThing(const InputMessagePtr &msg)
Definition: protocolgameparse.cpp:2178
ProtocolGame::getStaticText
StaticTextPtr getStaticText(const InputMessagePtr &msg, int type=0)
Definition: protocolgameparse.cpp:2381
ProtocolGame::login
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)
Definition: protocolgame.cpp:29
ProtocolGame::sendUseItem
void sendUseItem(const Position &position, int itemId, int stackpos, int index)
Definition: protocolgamesend.cpp:386
ProtocolGame::sendRequestChannels
void sendRequestChannels()
Definition: protocolgamesend.cpp:518
ProtocolGame::sendLogout
void sendLogout()
Definition: protocolgamesend.cpp:132
uint8
uint8_t uint8
Definition: types.h:37
ProtocolGame::sendWalkSouth
void sendWalkSouth()
Definition: protocolgamesend.cpp:212
ProtocolGame::sendUpContainer
void sendUpContainer(int containerId)
Definition: protocolgamesend.cpp:439
ProtocolGame::sendRefreshContainer
void sendRefreshContainer(int containerId)
Definition: protocolgamesend.cpp:690
Game
Definition: game.h:61
ProtocolGame::setFloorDescription
int setFloorDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height, int offset, int skip)
Definition: protocolgameparse.cpp:2064