Planeshift

marriagemanager.h

Go to the documentation of this file.
00001 /* marriagemanager.h- Author: DivineLight
00002  * Copyright (C) 2001 Atomic Blue ([email protected], http://www.atomicblue.org)
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation (version 2 of the License)
00007  * This program is distributed in the hope that it will be useful,
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  * GNU General Public License for more details.
00011  * You should have received a copy of the GNU General Public License
00012  * along with this program; if not, write to the Free Software
00013  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00014  */
00015 
00016 #ifndef __MARRIGEMANAGER_H__
00017 #define __MARRIGEMANAGER_H__
00018 
00019 //=============================================================================
00020 // Crystal Space Includes
00021 //=============================================================================
00022 
00023 //=============================================================================
00024 // Project Includes
00025 //=============================================================================
00026 
00027 //=============================================================================
00028 // Local Includes
00029 //=============================================================================
00030 
00041 class psMarriageManager
00042 {
00043 public:
00044 
00046     void Propose(Client* client, csString proposedCharName, csString proposeMsg);
00047 
00049     void ContemplateDivorce(Client* client, csString divorceMsg);
00050 
00052     void Divorce(Client* client, csString divorceMsg);
00053 
00061     bool PerformMarriage(psCharacter* charData, psCharacter* spouseData);
00062 
00067     void DeleteMarriageInfo(psCharacter* charData);
00068 
00072     void UpdateName(psCharacter* charData);
00073 
00074 private:
00079     bool CreateMarriageEntry(psCharacter* charData,  psCharacter* spouseData);
00080 };
00081 
00084 #endif