Planeshift
|
This class is the superclass for all player-to-player invitations, such as inviting into a group, a guild, a duel, an alliance, a guild war, a tourney, etc. More...
#include <invitemanager.h>
Public Member Functions | |
virtual void | HandleAnswer (const csString &answer) |
This is called when user sends answer to this question, or when the question times out (because the user didn't respond in time) | |
virtual void | HandleTimeout () |
PendingInvite (Client *inviter, Client *invitee, bool penalize, const char *question_str, const char *accept_button, const char *reject_button, const char *inviter_explanation, const char *invitee_explanation, const char *inviter_acceptance, const char *invitee_acceptance, const char *inviter_rejection, const char *invitee_rejection, psQuestionMessage::questionType_t invType) | |
if the user cannot accept this invitation (used when inviting member of secret guild) | |
Public Attributes | |
csString | accept |
the text on buttons used to either accept or reject invitation | |
bool | cannotAccept |
csString | inviteeAcceptance |
csString | inviteeName |
csString | inviteeRejection |
csString | inviterAcceptance |
text sent via chat when invitation has been accepted | |
int | inviterClientNum |
csString | inviterName |
names of the two players | |
csString | inviterRejection |
text sent via chat when invitation has been rejected | |
csString | reject |
Protected Member Functions | |
bool | CheckForSpam (Client *inviter, psQuestionMessage::questionType_t type) |
void | HandleSpamPoints (bool accepted) |
This class is the superclass for all player-to-player invitations, such as inviting into a group, a guild, a duel, an alliance, a guild war, a tourney, etc.
Subclass this and then hand over to QuestionManager
Definition at line 55 of file invitemanager.h.
PendingInvite::PendingInvite | ( | Client * | inviter, |
Client * | invitee, | ||
bool | penalize, | ||
const char * | question_str, | ||
const char * | accept_button, | ||
const char * | reject_button, | ||
const char * | inviter_explanation, | ||
const char * | invitee_explanation, | ||
const char * | inviter_acceptance, | ||
const char * | invitee_acceptance, | ||
const char * | inviter_rejection, | ||
const char * | invitee_rejection, | ||
psQuestionMessage::questionType_t | invType | ||
) |
if the user cannot accept this invitation (used when inviting member of secret guild)
bool PendingInvite::CheckForSpam | ( | Client * | inviter, |
psQuestionMessage::questionType_t | type | ||
) | [protected] |
virtual void PendingInvite::HandleAnswer | ( | const csString & | answer | ) | [virtual] |
This is called when user sends answer to this question, or when the question times out (because the user didn't respond in time)
Override this method to react to the answers sent by questioned users
Reimplemented from PendingQuestion.
void PendingInvite::HandleSpamPoints | ( | bool | accepted | ) | [protected] |
virtual void PendingInvite::HandleTimeout | ( | ) | [virtual] |
Reimplemented from PendingQuestion.
csString PendingInvite::accept |
the text on buttons used to either accept or reject invitation
Definition at line 62 of file invitemanager.h.
Definition at line 73 of file invitemanager.h.
csString PendingInvite::inviteeAcceptance |
Definition at line 65 of file invitemanager.h.
csString PendingInvite::inviteeName |
Definition at line 71 of file invitemanager.h.
csString PendingInvite::inviteeRejection |
Definition at line 68 of file invitemanager.h.
csString PendingInvite::inviterAcceptance |
text sent via chat when invitation has been accepted
Definition at line 65 of file invitemanager.h.
Definition at line 59 of file invitemanager.h.
csString PendingInvite::inviterName |
names of the two players
Definition at line 71 of file invitemanager.h.
csString PendingInvite::inviterRejection |
text sent via chat when invitation has been rejected
Definition at line 68 of file invitemanager.h.
csString PendingInvite::reject |
Definition at line 62 of file invitemanager.h.