53 static const Uint16 _messages[] = {
92 int count = (length - 28) / 46;
94 for (
int i = 0; i < count; i++)
187 Log::info(
"Unknown party exp option: %d", exp);
211 Log::info(
"Unknown party item option: %d", exp);
239 b->setParty(
nullptr);
281 std::string chatMsg = msg.
readString(msgLength);
288 "say: %s"), chatMsg.c_str()),
BY_SERVER);
324 "a player called %s."), name.c_str()),
BY_SERVER);
328 serverNotice(
_(
"You can only invite when you are in a party!"));
ActorSpriteManager * actorSpriteManager
Being * findBeingByName(const std::string &name, ActorSprite::Type type=Being::UNKNOWN) const
Finds a being by name and (optionally) by type.
Being * findBeing(int id) const
Returns a specific Being, by id;.
const std::string & getName() const
Returns the avatar's name.
void setOnline(bool online)
Set the avatar's online status.
const std::string & getName() const
Returns the name of the being.
void setParty(Party *party)
void chatLog(std::string line, Own own=BY_SERVER, bool ignoreRecord=false)
Adds a line of text to our message list.
const uint16_t * handledMessages
void setLeader(bool leader)
static Party * getParty(int id)
PartyMember * getMember(int id) const
Find a member by ID.
PartyMember * addMember(int id, const std::string &name)
Adds member to the list.
void setName(const std::string &name)
Set the party's name.
void removeMember(PartyMember *member)
Removes a member from the party.
bool removeTab(Guild *guild)
void showPartyInvite(const std::string &inviter, const std::string &partyName=std::string())
Used for parsing an incoming message from eAthena.
std::string readString(int length=-1)
Reads a string.
uint16_t readInt16()
Reads an unsigned 16-bit integer from the message.
uint8_t readInt8()
Reads an unsigned 8-bit integer from the message.
uint16_t getId() const
Returns the message ID.
uint32_t readInt32()
Reads an unsigned 32-bit integer from the message.
Used for building an outgoing message to eAthena.
void writeInt32(uint32_t value)
Writes an unsigned 32-bit integer to the message.
void writeInt16(uint16_t value)
Writes an unsigned 16-bit integer to the message.
void writeString(const std::string &string, int length=-1)
Writes a string.
void setShareExperience(PartyShare share) override
void invite(Being *being) override
void inviteResponse(const std::string &inviter, bool accept) override
void create(const std::string &name=std::string()) override
void chat(const std::string &text) override
void kick(Being *being) override
void handleMessage(MessageIn &msg) override
void setShareItems(PartyShare share) override
void requestPartyMembers() override
void join(int partyId) override
A tab for a party chat channel.
void serverNotice(const std::string &message)
SocialWindow * socialWindow
LocalPlayer * local_player
Net::PartyHandler * partyHandler
void info(const char *log_text,...) LOG_PRINTF_ATTR
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
@ SMSG_PARTY_UPDATE_COORDS
@ SMSG_PARTY_INVITE_RESPONSE
@ PARTY_SHARE_NOT_POSSIBLE
std::string strprintf(char const *format,...)
A safe version of sprintf that returns a std::string of the result.