diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
| commit | 6d4e1eae16b84918009625a866104ec26a234277 (patch) | |
| tree | a340a8a547a60c9f63c8dfafe8909242f9c9bbd8 /include/wall.h | |
nahranie tarballu tuxanci-ng na SVN server
Dusan Durech ( Oroborus )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@1 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/wall.h')
| -rw-r--r-- | include/wall.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/wall.h b/include/wall.h new file mode 100644 index 0000000..5918140 --- /dev/null +++ b/include/wall.h @@ -0,0 +1,34 @@ + +#ifndef WALL_H + +#define WALL_H + +#include <interface.h> +#include "list.h" + +typedef struct wall_struct +{ + int x; // poloha steny + int y; + + int w; // rozmery steny + int h; + + int img_x; // poloha obrazka + int img_y; + + int layer; // vrstva + + SDL_Surface *img; //obrazok +} wall_t; + +extern wall_t* newWall(int x, int y, int w, int h, + int img_x, int img_y, int layer, SDL_Surface *img); +extern void drawWall(wall_t *p); +extern void drawListWall(list_t *listWall); +extern int isConflictWithListWall(list_t *listWall, int x, int y, int w, int h); +extern void eventConflictShotWithWall(list_t *listWall, list_t *listShot); +extern void destroyWall(wall_t *p); + +#endif + |