Planeshift
Classes | Public Member Functions

psBuddyManager Class Reference

Class to handle buddies. More...

#include <pscharacter.h>

List of all members.

Classes

struct  Buddy

Public Member Functions

bool AddBuddy (PID buddyID, csString &name)
 Add the player with a certain Player ID to this character buddy list.
void AddBuddyOf (PID buddyID)
 Adds this player as having this character on their buddy list.
csArray< psBuddyManager::BuddyGetBuddyList ()
csArray< PID > GetBuddyOfList ()
void Initialize (PID charID)
 Setup the buddy manager.
bool IsBuddy (PID buddyID)
 Checks if a playerID is a buddy of this character.
bool LoadBuddies (Result &myBuddies, Result &buddyOf)
 Load the set of my buddies as well as those that have me as a buddy.
void RemoveBuddy (PID buddyID)
 Remove the player with a certain Player ID from this character buddy list.
void RemoveBuddyOf (PID buddyID)
 Remove character as having this character on their buddy list.

Detailed Description

Class to handle buddies.

Definition at line 195 of file pscharacter.h.


Member Function Documentation

bool psBuddyManager::AddBuddy ( PID  buddyID,
csString &  name 
)

Add the player with a certain Player ID to this character buddy list.

Parameters:
buddyIDthe Player ID which we are going to add to the character buddy list
nameThe name of the buddy.
void psBuddyManager::AddBuddyOf ( PID  buddyID)

Adds this player as having this character on their buddy list.

Parameters:
buddyIDthe Player ID of the character that has this character as a buddy.
csArray<psBuddyManager::Buddy> psBuddyManager::GetBuddyList ( ) [inline]

Definition at line 260 of file pscharacter.h.

csArray<PID> psBuddyManager::GetBuddyOfList ( ) [inline]

Definition at line 264 of file pscharacter.h.

void psBuddyManager::Initialize ( PID  charID) [inline]

Setup the buddy manager.

Parameters:
charIDThe PID of the owner of this buddy manager.

Definition at line 209 of file pscharacter.h.

bool psBuddyManager::IsBuddy ( PID  buddyID)

Checks if a playerID is a buddy of this character.

Parameters:
buddyIDthe Player ID of which we are checking the presence in the character buddy list
Returns:
true if the provided PID was found in this character.
bool psBuddyManager::LoadBuddies ( Result myBuddies,
Result buddyOf 
)

Load the set of my buddies as well as those that have me as a buddy.

Parameters:
myBuddiesThe database set of characters that are my buddy.
buddyOfThe database set of characters that have me as a buddy.
void psBuddyManager::RemoveBuddy ( PID  buddyID)

Remove the player with a certain Player ID from this character buddy list.

Parameters:
buddyIDthe Player ID which we are going to remove from the character buddy list
void psBuddyManager::RemoveBuddyOf ( PID  buddyID)

Remove character as having this character on their buddy list.

Parameters:
buddyIDthe Player ID of the character that has removed this character as a buddy.

The documentation for this class was generated from the following file: