49 outMsg.writeInt8(2,
"action");
58 outMsg.writeBeingId(
id,
"mercenary id");
67 outMsg.writeBeingId(
id,
"mercenary id");
74 const Keep keep)
const
80 outMsg.writeBeingId(
id,
"mercenary id");
81 outMsg.writeBeingId(targetId,
"target id");
91 std::string
msg = text;
94 const size_t sz =
msg.size();
97 outMsg.writeInt16(
CAST_S16(sz + 4 + 1),
"len");
99 outMsg.writeInt8(0,
"zero byte");
107 outMsg.writeInt8(emoteId,
"emote id");
115 outMsg.writeInt32(0,
"pet id");
116 outMsg.writeInt8(0,
"head direction");
117 outMsg.writeInt8(0,
"unused");
const BeingId BeingId_zero
void move(const int x, const int y) const
void moveToMaster() const
void setDirection(const unsigned char type) const
void emote(const uint8_t emoteId) const
void talk(const std::string &text) const
void attack(const BeingId targetId, const Keep keep) const
static unsigned char toServerDirection(unsigned char direction) A_CONST
virtual bool haveMovePet() const =0
Net::MercenaryHandler * mercenaryHandler
#define createOutPacket(name)
bool msg(InputEvent &event)
Net::ServerFeatures * serverFeatures