Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

rectlist.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           rectlist.h  -  description
00003                              -------------------
00004     begin                : Fri Mar 7 2003
00005     copyright            : (C) 2003 by Tyler Montbriand
00006     email                : tsm@accesscomm.ca
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef __RECTLIST_H__
00018 #define __RECTLIST_H__
00019 
00020 #include "RotateImage.h"
00021 #include "Fxp.h"
00022 #include "rect.h"
00023 
00024 #include <SDL/begin_code.h>
00025 
00026 
00029 
00035 class DECLSPEC RectList
00036 {
00037 public:
00039   RectList(int numrects=1024);
00041   Rect operator[](int);
00043   Rect Pop();
00045   void Update(SDL_Surface *screen);
00047   void Clear();
00049   bool Remove(int index);
00051   bool Push(Rect r);
00053   bool Reduce(SDL_Surface *screen);
00055   int Pos();
00057   int Size();
00059   ~RectList();
00060   
00061 private:
00063   Rect *rects;
00065   int   size;
00067   int   pos;
00068 };
00069 
00071 
00072 #include <SDL/close_code.h>
00073 
00074 #endif/*__RECTLIST_H__*/

Generated on Sat Oct 11 13:19:25 2003 for Spritelib by doxygen 1.3.4