SDLGameEngine

include/sgespritegroup.h

Go to the documentation of this file.
00001 #ifndef _SGESPRITEGROUP_H
00002 #define _SGESPRITEGROUP_H
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00012 /*
00013  * Copyright (c) 2007 Heiko Irrgang
00014  *
00015  * The license and distribution terms for this file may be
00016  * found in the file COPYING in this distribution or at
00017  * http://93-interactive.com/cms/products/software/sdl-game-engine/license/
00018  */
00019 
00034 typedef struct {
00036         SGEARRAY *sprite;
00037 } SGESPRITEGROUP;
00038 
00043 SGESPRITEGROUP *sgeSpriteGroupNew(void);
00044 
00049 void sgeSpriteGroupDestroy(SGESPRITEGROUP *g);
00050 
00056 void sgeSpriteGroupAddSprite(SGESPRITEGROUP *g, SGESPRITE *s);
00057 
00064 int sgeSpriteGroupCollide(SGESPRITEGROUP *g, SGESPRITEGROUP *cg);
00065 
00075 int sgeSpriteGroupCollideSprite(SGESPRITEGROUP *g, SGESPRITE *s);
00076 
00083 SGESPRITE *sgeSpriteGroupGetCollider(SGESPRITEGROUP *g, SGESPRITEGROUP *cg);
00084 
00091 SGESPRITE *sgeSpriteGroupGetColliderSprite(SGESPRITEGROUP *g, SGESPRITE *s);
00092 
00097 void sgeSpriteGroupDraw(SGESPRITEGROUP *g);
00098 
00105 void sgeSpriteGroupDrawRelative(SGESPRITEGROUP *g, int camx, int camy);
00106 
00107 // }@
00108 
00109 #ifdef __cplusplus
00110 }
00111 #endif
00112 
00113 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines