server/material.h

Go to the documentation of this file.
00001 /* $Id:material.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 __MATERIAL_H
00015 #define __MATERIAL_H
00016 
00017 #include <string>
00018 #include <map>
00019 #include <list>
00020 using namespace std;
00021 
00022 
00023 
00024 class material {
00025     class item *item;
00026     int amount;
00027     int position;
00028 public:
00029     material();
00030 
00031     // Field : item
00032     class item& getItem() const;
00033     void setItem(class item &v);
00034 
00035     // Field : amount
00036     const int getAmount() const;
00037     void setAmount(const int v);
00038 
00039     // Field : position
00040     const int getPosition() const;
00041     void setPosition(const int v);
00042     const string showPosition() const;
00043     int operator<(const class material &ck) const;
00044 
00045     void save(class channel &ch);
00046     void load(class channel &ch);
00047     void xml(ofstream &f, int l=0, int r=0);
00048 };
00049 
00050 #endif // __MATERIAL_H


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