Planeshift
marriagemanager.h
Go to the documentation of this file.
1 /* marriagemanager.h- Author: DivineLight
2  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation (version 2 of the License)
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License
12  * along with this program; if not, write to the Free Software
13  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14  */
15 
16 #ifndef __MARRIGEMANAGER_H__
17 #define __MARRIGEMANAGER_H__
18 
19 //=============================================================================
20 // Crystal Space Includes
21 //=============================================================================
22 
23 //=============================================================================
24 // Project Includes
25 //=============================================================================
26 
27 //=============================================================================
28 // Local Includes
29 //=============================================================================
30 
42 {
43 public:
44 
46  void Propose(Client* client, csString proposedCharName, csString proposeMsg);
47 
49  void ContemplateDivorce(Client* client, csString divorceMsg);
50 
52  void Divorce(Client* client, csString divorceMsg);
53 
61  bool PerformMarriage(psCharacter* charData, psCharacter* spouseData);
62 
67  void DeleteMarriageInfo(psCharacter* charData);
68 
72  void UpdateName(psCharacter* charData);
73 
74 private:
79  bool CreateMarriageEntry(psCharacter* charData, psCharacter* spouseData);
80 };
81 
84 #endif
bool PerformMarriage(psCharacter *charData, psCharacter *spouseData)
Sets spouse name for a given character Name.
This class manages all marriage related stuff.
void UpdateName(psCharacter *charData)
Used to update name in labels, guilds, targets, etc.
void DeleteMarriageInfo(psCharacter *charData)
Deletes marriage information of given character name from DB and reverts any lastname changes and upd...
void ContemplateDivorce(Client *client, csString divorceMsg)
Confirm divorce.
This class collects data of a netclient.
Definition: client.h:95
void Divorce(Client *client, csString divorceMsg)
Divorce.
void Propose(Client *client, csString proposedCharName, csString proposeMsg)
Propose.