AdviceManager keeps track of all the invitations of any kind that are pending, using a collection of PendingAdvice objects.
More...
#include <advicemanager.h>
List of all members.
Detailed Description
AdviceManager keeps track of all the invitations of any kind that are pending, using a collection of PendingAdvice objects.
An invitation is pending between the time that the Noob sends the invitation and when an Advisor sends a response.
Definition at line 77 of file advicemanager.h.
Constructor & Destructor Documentation
virtual AdviceManager::~AdviceManager |
( |
| ) |
[virtual] |
Member Function Documentation
void AdviceManager::AddAdvisor |
( |
Client * |
client | ) |
|
Adds a new advisor available to answer questions.
- Parameters:
-
void AdviceManager::AdviceRequestTimeout |
( |
AdviceSession * |
adviceSession | ) |
|
Resend request for advice due to timeout.
- Parameters:
-
adviceSession | The session that has expired |
void AdviceManager::CancelAdvisorSession |
( |
gemActor * |
who, |
|
|
AdviceSession * |
adviceSession, |
|
|
const char * |
msg |
|
) |
| |
Remove advise session due to timeout.
- Parameters:
-
who | The actor. |
adviceSession | The session that has expired. |
msg | A message for the player. |
bool AdviceManager::FloodControl |
( |
csString & |
newmessage, |
|
|
Client * |
client |
|
) |
| [protected] |
bool AdviceManager::GetAdvisorMode |
( |
int |
id, |
|
|
int |
connectionId |
|
) |
| |
Retrieve the clients advisor mode.
- Parameters:
-
id | The id of the advisor to remove ( same as player ID ) |
connectionId | The client id that client dropping advisor role. |
void AdviceManager::HandleAdviceList |
( |
Client * |
advisor | ) |
[protected] |
void AdviceManager::HandleAdviceMessage |
( |
MsgEntry * |
pMsg, |
|
|
Client * |
client |
|
) |
| |
void AdviceManager::HandleAdviceRequest |
( |
Client * |
advisee, |
|
|
csString |
message |
|
) |
| [protected] |
void AdviceManager::HandleAdviceResponse |
( |
Client * |
advisee, |
|
|
csString |
sAdvisee, |
|
|
csString |
message |
|
) |
| [protected] |
void AdviceManager::HandleAdviseeList |
( |
Client * |
advisor | ) |
[protected] |
void AdviceManager::HandleListAdvisors |
( |
Client * |
advisor | ) |
[protected] |
void AdviceManager::RemoveAdvisor |
( |
uint32_t |
id, |
|
|
int |
connectionId |
|
) |
| |
Remove advisor available to answer questions.
- Parameters:
-
id | The id of the advisor to remove ( same as player ID ) |
connectionId | The client id that client dropping advisor role. |
void AdviceManager::RemoveSession |
( |
AdviceSession * |
adviceSession | ) |
|
Member Data Documentation
The documentation for this class was generated from the following file: