37 #include "gui/viewport.h" 43 #include "resources/map/map.h" 62 std::string mapPath = msg.
readString(16,
"map name");
66 logger->
log(
"Warping to %s (%d, %d)", mapPath.c_str(),
x,
y);
69 logger->
log1(
"SMSG_PLAYER_WARP localPlayer null");
81 BLOCK_END(
"PlayerRecv::processPlayerWarp")
86 const bool sameMap = (currentMapName == mapPath);
89 mapPath = mapPath.substr(0, mapPath.rfind(
'.'));
92 int scrollOffsetX = 0;
93 int scrollOffsetY = 0;
128 logger->
log(
"Adjust scrolling by %d:%d", scrollOffsetX, scrollOffsetY);
135 BLOCK_END(
"PlayerRecv::processPlayerWarp")
140 BLOCK_START(
"PlayerRecv::processPlayerStatUpdate1")
142 const int value = msg.
readInt32(
"value");
145 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate1")
150 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate1")
155 BLOCK_START(
"PlayerRecv::processPlayerStatUpdate2")
157 const int value = msg.
readInt32(
"value");
159 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate2")
164 BLOCK_START(
"PlayerRecv::processPlayerStatUpdate3")
167 const int bonus = msg.
readInt32(
"bonus");
170 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate3")
175 BLOCK_START(
"PlayerRecv::processPlayerStatUpdate4")
176 const uint16_t type = msg.
readInt16(
"type");
178 const int value = msg.
readUInt8(
"value");
183 static_cast<AttributesT>(type));
193 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate4")
198 BLOCK_START(
"PlayerRecv::processPlayerStatUpdate6")
200 const int value = msg.
readUInt8(
"value");
203 BLOCK_END(
"PlayerRecv::processPlayerStatUpdate6")
208 BLOCK_START(
"PlayerRecv::processPlayerArrowMessage")
222 BLOCK_END(
"PlayerRecv::processPlayerArrowMessage")
228 const std::string music = msg.
readString(size,
"name");
249 std::string command = msg.
readString(sz,
"command");
Net::PlayerHandler * playerHandler
unsigned char readUInt8(const char *const str)
const bool SkipError_false
void log1(const char *const log_text)
void setTileCoords(const int x, const int y)
int getTileHeight() const
const std::string & getCurrentMapName() const
bool parse2Str(const std::string &args, std::string &str1, std::string &str2)
#define BLOCK_START(name)
SoundManager soundManager
void processPlayerStatUpdate4(Net::MessageIn &msg)
void processPlayerWarp(Net::MessageIn &msg)
StatusWindow * statusWindow
void processPlayerArrowMessage(Net::MessageIn &msg)
bool msg(InputEvent &event)
void notify(const unsigned int message)
Map * getCurrentMap() const
bool enableRemoteCommands
bool ok(InputEvent &event)
void processPlayerStatUpdate6(Net::MessageIn &msg)
int16_t readInt16(const char *const str)
void changeMap(const std::string &mapName)
void processPlayerStatUpdate3(Net::MessageIn &msg)
void scrollBy(const int x, const int y)
void setMask(const int mask)
static const int MAP_TELEPORT_SCROLL_DISTANCE
LocalPlayer * localPlayer
void setAttribute(const AttributesT id, const int64_t value, const Notify notify)
void stopAttack(const bool keepAttack)
int getStatBase(const AttributesT id)
void playMusic(const std::string &fileName, const SkipError skipError)
void processPlayerStatUpdate2(Net::MessageIn &msg)
std::string readString(int length, const char *const dstr)
void processPlayerClientCommand(Net::MessageIn &msg)
void log(const char *const log_text,...)
int32_t readInt32(const char *const str)
void processMapMusic(Net::MessageIn &msg)
void processMapMask(Net::MessageIn &msg)
int32_t getAttribute(const AttributesT id)
void setMusicFile(const std::string &file)
virtual void setStat(Net::MessageIn &msg, const int type, const int64_t base, const int mod, const Notify notify) const =0
void processPlayerStatUpdate1(Net::MessageIn &msg)
void setAction(const BeingActionT &action, const int attackId)
#define UNIMPLEMENTEDPACKETFIELD(field)