00001 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 00002 /* 00003 * frpuniverse 00004 * Copyright (C) Peter L. Berghold 2008 <Peter@Berghold.net> 00005 * 00006 * frpuniverse is free software. 00007 * 00008 * You may redistribute it and/or modify it under the terms of the 00009 * GNU General Public License, as published by the Free Software 00010 * Foundation; either version 2 of the License, or (at your option) 00011 * any later version. 00012 * 00013 * frpuniverse is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with frpuniverse. If not, write to: 00020 * The Free Software Foundation, Inc., 00021 * 51 Franklin Street, Fifth Floor 00022 * Boston, MA 02110-1301, USA. 00023 */ 00024 00025 #include <stdio.h> 00026 00027 #include "skill-entry.hpp" 00028 00029 00030 #ifndef _SKILL_LIST_HPP_ 00031 #define _SKILL_LIST_HPP_ 00032 00033 00034 class skillObj; 00035 #include "skill-obj.hpp" 00041 class skillList 00042 { 00043 public: 00044 00048 skillList(); 00049 00057 void addSkill(char* s,int l); 00058 00066 void addSkill(skillObj* s); 00067 00068 00074 int skillCount(); 00075 00081 char** listOfSkills(); 00082 00086 char *listOfSkillString(); 00087 00093 void XMLout(FILE* fout); 00094 00095 protected: 00096 00097 private: 00098 skillEntry* root; 00099 00100 00101 }; 00102 00103 #endif // _SKIL_LIST_HPP_