51 outMsg.writeString(name, 24,
"name");
60 outMsg.writeBeingId(
id,
"homunculus id");
69 outMsg.writeBeingId(
id,
"homunculus id");
76 const Keep keep)
const
82 outMsg.writeBeingId(
id,
"homunculus id");
83 outMsg.writeBeingId(targetId,
"target id");
92 outMsg.writeInt16(0,
"type");
93 outMsg.writeInt8(1,
"command");
101 outMsg.writeInt16(0,
"type");
102 outMsg.writeInt8(2,
"command");
111 std::string
msg = text;
112 if (
msg.size() > 500)
114 const size_t sz =
msg.size();
117 outMsg.writeInt16(
CAST_S16(sz + 4 + 1),
"len");
119 outMsg.writeInt8(0,
"zero byte");
127 outMsg.writeInt8(emoteId,
"emote id");
135 outMsg.writeInt32(0,
"pet id");
136 outMsg.writeInt8(0,
"head direction");
137 outMsg.writeInt8(0,
"unused");
const BeingId BeingId_zero
void moveToMaster() const
void setName(const std::string &name) const
void talk(const std::string &text) const
void setDirection(const unsigned char type) const
void emote(const uint8_t emoteId) const
void attack(const BeingId targetId, const Keep keep) const
void move(const int x, const int y) const
static unsigned char toServerDirection(unsigned char direction) A_CONST
virtual bool haveMovePet() const =0
Net::HomunculusHandler * homunculusHandler
#define createOutPacket(name)
bool msg(InputEvent &event)
BeingId getHomunculusId()
Net::ServerFeatures * serverFeatures