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

RectList Class Reference
[Glue-logic objects]

A simple stack class for rectangles.

#include <rectlist.h>

Collaboration diagram for RectList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RectList (int numrects=1024)
 Constructor to specify size of stack.

Rect operator[] (int)
 Operator to make class act like an array.

Rect Pop ()
 Pops a rectangle off the top of the stack.

void Update (SDL_Surface *screen)
 Updates the represented portions of the screen.

void Clear ()
 Totally empties the stack.

bool Remove (int index)
 Removes the selected rectangle from the stack.

bool Push (Rect r)
 Pushes a rect onto the top of the stack.

bool Reduce (SDL_Surface *screen)
 Attempts to merge overlapping rectangles.

int Pos ()
 Returns the current position in the stack.

int Size ()
 Returns the number of elements in the stack.

 ~RectList ()
 Destructor, frees all data.


The documentation for this class was generated from the following files:
Generated on Sat Oct 11 13:19:34 2003 for Spritelib by doxygen 1.3.4