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 __BASE_H_INCLUDED__ 00024 #define __BASE_H_INCLUDED__ 00025 00027 class base : public IEventReceiver 00028 { 00029 public: 00031 base(stringc=stringc("base")); 00032 00034 ~base(); 00035 00037 virtual int init(int,coeur*); 00038 00040 virtual int update(); 00041 00043 virtual int close(); 00044 00046 int getId(); 00047 00049 int log(stringc); 00050 00052 bool isInit(); 00053 00054 protected: 00056 coeur* mycore; 00057 00058 private: 00060 int id; 00061 00063 stringc nameClass; 00064 00066 int logId; 00067 00069 bool initialize; 00070 };// End class base 00071 00072 #endif //__BASE_H_INCLUDED__ 00073