00001 00002 /* 00003 * The aedImageBank class 00004 * This class holds a vector containing aedImages objects 00005 * Initial design by Eduardo B. Fonseca <ebf@aedsolucoes.com.br> 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 */ 00022 00023 #ifndef AEDIMAGEBANK_H 00024 #define AEDIMAGEBANK_H 00025 00026 #include <iostream> 00027 #include <vector> 00028 #include "SDL.h" 00029 #include "dllmacros.h" 00030 #include "aedImage.h" 00031 00032 class DLLEXPORT aedImageBank 00033 { 00034 public: 00035 aedImageBank(); 00036 virtual ~ aedImageBank(); 00037 Uint16 addImage(aedImage image); 00038 bool delImage(Uint16 index); 00039 aedImage & getImage(Uint16 index); 00040 Uint16 getSize(void); 00041 private: 00042 std::vector < aedImage > m_Data; 00043 00044 }; 00045 00046 #endif