51 chatLog(
_(
"/help > Display this help."));
52 chatLog(
_(
"/invite > Invite a player to your party"));
53 chatLog(
_(
"/leave > Leave the party you are in"));
54 chatLog(
_(
"/kick > Kick someone from the party you are in"));
55 chatLog(
_(
"/item > Show/change party item sharing options"));
56 chatLog(
_(
"/exp > Show/change party experience sharing options"));
65 chatLog(
_(
"Command: /invite <nick>"));
66 chatLog(
_(
"This command invites <nick> to party with you."));
67 chatLog(
_(
"If the <nick> has spaces in it, enclose it in "
68 "double quotes (\")."));
70 else if (args ==
"leave")
73 chatLog(
_(
"This command causes the player to leave the party."));
75 else if (args ==
"item")
77 chatLog(
_(
"Command: /item <policy>"));
78 chatLog(
_(
"This command changes the party's item sharing policy."));
79 chatLog(
_(
"<policy> can be one of \"1\", \"yes\", \"true\" to "
80 "enable item sharing, or \"0\", \"no\", \"false\" to "
81 "disable item sharing."));
83 chatLog(
_(
"This command displays the party's current item sharing policy."));
85 else if (args ==
"exp")
87 chatLog(
_(
"Command: /exp <policy>"));
88 chatLog(
_(
"This command changes the party's experience sharing policy."));
89 chatLog(
_(
"<policy> can be one of \"1\", \"yes\", \"true\" to "
90 "enable experience sharing, or \"0\", \"no\", \"false\" to "
91 "disable experience sharing."));
93 chatLog(
_(
"This command displays the party's current experience sharing policy."));
98 else if (type ==
"create" || type ==
"new")
105 else if (type ==
"invite")
109 else if (type ==
"leave")
113 else if (type ==
"kick")
117 else if (type ==
"item")
152 else if (type ==
"exp")
ChatLogger * chatLogger
Chat log object.
void log(std::string str)
Enters a message in the log.
A tab for the chat window.
void chatLog(std::string line, Own own=BY_SERVER, bool ignoreRecord=false)
Adds a line of text to our message list.
static char parseBoolean(const std::string &value)
virtual void setShareExperience(PartyShare share)=0
virtual void create(const std::string &name=std::string())=0
virtual void kick(Being *player)=0
virtual void chat(const std::string &text)=0
virtual void setShareItems(PartyShare share)=0
virtual void invite(Being *player)=0
void setTabColor(const gcn::Color *color)
Set the normal color fo the tab's text.
static const gcn::Color & getThemeColor(int type)
Gets the color associated with the type in the default palette (0).
void getAutoCompleteList(std::vector< std::string > &) const override
bool handleCommand(const std::string &type, const std::string &args) override
Handle special commands.
void handleInput(const std::string &msg) override
void saveToLogFile(std::string &msg) override
void showHelp() override
Add any extra help text to the output.
std::string booleanOptionInstructions(const char *command)
LocalPlayer * local_player
PartyHandler * getPartyHandler()
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
@ PARTY_SHARE_NOT_POSSIBLE