00001 /* This file is part of The_Merry_Turnip 00002 * 00003 * The_Merry_Turnip - TODO: Description 00004 * Copyright © DAVY Guillaume 2009 <davyg2@gmail.com> 00005 * 00006 * The_Merry_Turnip is free software: you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * The_Merry_Turnip is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00014 * See the GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with this program. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00023 #ifndef __CHAP_H_INCLUDED__ 00024 #define __CHAP_H_INCLUDED__ 00025 00027 class chap : public base 00028 { 00029 public: 00031 chap(); 00032 00034 ~chap(); 00035 00037 int init(int,coeur*,IXMLReader*); 00038 00040 int update(); 00041 00043 int close(); 00044 00046 item addItem(int id,stringc tex,int it,int cr); 00047 00049 item getItemFromId(int id); 00050 00052 bool OnEvent(const SEvent&); 00053 private: 00054 00056 std::vector<item> *listItem; 00057 };// End class chap 00058 00059 #endif //__CHAP_H_INCLUDED__ 00060