server_new/members.h

Go to the documentation of this file.
00001 /* $Id:members.h $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License version 3.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY.
00010 
00011    See the COPYING file for more details.
00012 */
00013 
00014 #ifndef __MEMBERS_H
00015 #define __MEMBERS_H
00016 
00017 #include <string>
00018 #include <map>
00019 #include <list>
00020 using namespace std;
00021 
00022 
00023 
00024 class members {
00025     class unit *member;
00026     int status;
00027     int training;
00028 public:
00029     members();
00030 
00031     // Field : member
00032     class unit& getMember() const;
00033     void setMember(class unit &v);
00034 
00035     // Field : status
00036     const int getStatus() const;
00037     void setStatus(const int v);
00038 
00039     // Field : training
00040     const int getTraining() const;
00041     void setTraining(const int v);
00042 
00043     void save(class channel &ch);
00044     void load(class channel &ch);
00045     void xml(ofstream &f, int l=0, int r=0);
00046 };
00047 
00048 #endif // __MEMBERS_H


Generated on Tue Jan 1 17:30:00 2008 for server_new/members.h Source File by  doxygen   Visit the project page on SourceForge.net Logo