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

sprite.h File Reference

Class definition for Sprite. More...

#include "RotateImage.h"
#include "Fxp.h"
#include "rect.h"
#include "bitmask.h"
#include <SDL/begin_code.h>
#include <SDL/close_code.h>

Include dependency graph for sprite.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

class  Sprite
 The basic Sprite class itself. More...


Sprite flags

Functions of the various sprite flags

#define SPRITE_NONE   0x0000
 No flags.

#define SPRITE_WAIT   0x0001
 Sprite is waiting for first draw or removal from list.

#define SPRITE_MOVED   0x0002
 Sprite needs redraw.

#define SPRITE_EXPIRED   0x0004
 Sprite needs removal from list.

#define SPRITE_DELETEABLE   0x0008
 Sprite can be freed from mem upon removal from list.

#define SPRITE_OWNSURFACE   0x0010
 Sprite owns aka can free the contained SDL_surface.

#define SPRITE_OWNBITMASK   0x0020
 Sprite owns aka can free the contained bitmasks.


Image manipulation functions

Functions to load and prepare images

DECLSPEC SDL_Surface *SDLCALL LoadConvertBMP (const char *, Uint8 tr=255, Uint8 tg=0, Uint8 tb=255)
 Loads an image and converts it to screen parameters.

DECLSPEC bitmask *SDLCALL MakeBitMask (SDL_Surface *surf, Rect rect)
 Converts selected portion of image into collision bitmask.


Defines

#define COL_LAYER(x)   (0xff&(1<<x))
 Converts a collision layer to a collision mask.


Typedefs

typedef Uint16 SpriteFlag
 Type used for sprite status flag.

typedef Uint8 ColType
 Type used for collision layer.


Detailed Description

Definition in file sprite.h.


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