server_new/action_bonus.h

Go to the documentation of this file.
00001 /* $Id:action_bonus.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 __ACTION_BONUS_H
00015 #define __ACTION_BONUS_H
00016 
00017 #include <string>
00018 #include <map>
00019 #include <list>
00020 using namespace std;
00021 
00022 
00023 
00024 class action_bonus {
00025     int nr;
00026     int points;
00027     int type;
00028 public:
00029     action_bonus();
00030 
00031     // Field : nr
00032     const int getNr() const;
00033     void setNr(const int v);
00034     int operator<(const class action_bonus &ck) const;
00035 
00036     // Field : points
00037     const int getPoints() const;
00038     void setPoints(const int v);
00039 
00040     // Field : type
00041     enum type_enum{type_less_energy,type_less_endurance,type_less_space_needed,type_less_time,type_extra_attack,type_extra_defense,type_extra_effect,type_double_range,type_group_size,type_extra_age,type_extra_meter,type_less_damage,type_extra_item,type_extra_person,type_extra_day};
00042     const int getType() const;
00043     const string showType() const;
00044     void setType(const int v);
00045     void setType(const string v);
00046 
00047     void save(class channel &ch);
00048     void load(class channel &ch);
00049     void xml(ofstream &f, int l=0, int r=0);
00050 };
00051 
00052 #endif // __ACTION_BONUS_H


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