Planeshift
Public Member Functions

psMarriageManager Class Reference

This class manages all marriage related stuff. More...

#include <marriagemanager.h>

List of all members.

Public Member Functions

void ContemplateDivorce (Client *client, csString divorceMsg)
 Confirm divorce.
void DeleteMarriageInfo (psCharacter *charData)
 Deletes marriage information of given character name from DB and reverts any lastname changes and updates cached data.
void Divorce (Client *client, csString divorceMsg)
 Divorce.
bool PerformMarriage (psCharacter *charData, psCharacter *spouseData)
 Sets spouse name for a given character Name.
void Propose (Client *client, csString proposedCharName, csString proposeMsg)
 Propose.
void UpdateName (psCharacter *charData)
 Used to update name in labels, guilds, targets, etc.

Detailed Description

This class manages all marriage related stuff.

This class manages all marriage related functionality and has functions to retrieve/edit character's marriage related details.

Definition at line 41 of file marriagemanager.h.


Member Function Documentation

void psMarriageManager::ContemplateDivorce ( Client client,
csString  divorceMsg 
)

Confirm divorce.

void psMarriageManager::DeleteMarriageInfo ( psCharacter charData)

Deletes marriage information of given character name from DB and reverts any lastname changes and updates cached data.

void psMarriageManager::Divorce ( Client client,
csString  divorceMsg 
)

Divorce.

bool psMarriageManager::PerformMarriage ( psCharacter charData,
psCharacter spouseData 
)

Sets spouse name for a given character Name.

Parameters:
charDataPointer to the character's data
spouseDataPointer to spouse character's data.
Returns:
true if successfull else returns false.
void psMarriageManager::Propose ( Client client,
csString  proposedCharName,
csString  proposeMsg 
)

Propose.

void psMarriageManager::UpdateName ( psCharacter charData)

Used to update name in labels, guilds, targets, etc.


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