diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
| commit | 7bbd60007620cf3cc3ee7a913f7010588808ebb2 (patch) | |
| tree | 34e72f66dfd1076e23c43074786f935aca70cba1 /src/base/shot.h | |
| parent | 50ba3d5e1e9f9eeda049a348efa4645af07610bc (diff) | |
"- initial commit for GETTEXT support and K&R compilance"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@196 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/shot.h')
| -rw-r--r-- | src/base/shot.h | 112 |
1 files changed, 50 insertions, 62 deletions
diff --git a/src/base/shot.h b/src/base/shot.h index 189cf52..1b3569e 100644 --- a/src/base/shot.h +++ b/src/base/shot.h @@ -1,66 +1,54 @@ #ifndef SHOT_H - -#define SHOT_H - -#include "main.h" -#include "list.h" -#include "tux.h" -#include "arena.h" - -#ifdef __WIN32__ -#define random rand -#endif - -#ifndef PUBLIC_SERVER -#include "image.h" -#endif - -typedef struct shot_struct -{ - int id; - - int x; - int y; - - int w; - int h; - - int px; - int py; - - int position; - int gun; - - int author_id; - bool_t isCanKillAuthor; - bool_t del; - -#ifndef PUBLIC_SERVER - image_t *img; -#endif -} shot_t; - -extern bool_t isShotInicialized(); -extern void initShot(); -extern shot_t* newShot(int x,int y, int px, int py, int gun, int author_id); -extern shot_t* getShotID(list_t *listShot, int id); -extern void replaceShotID(shot_t *shot, int id); -extern void getStatusShot(void *p, int *id, int *x,int *y, int *w, int *h); -extern void setStatusShot(void *p, int x, int y, int w, int h); -#ifndef PUBLIC_SERVER -extern void drawShot(shot_t *p); -extern void drawListShot(list_t *listShot); -#endif -extern int isConflictWithListShot(list_t *listShot, int x, int y, int w, int h); -extern void eventMoveListShot(arena_t *arena); -extern void checkShotIsInTuxScreen(arena_t *arena); - -extern void boundBombBall(shot_t *shot); -extern void transformOnlyLasser(shot_t *shot); - -extern void destroyShot(shot_t *p); -extern void quitShot(); - + #define SHOT_H + #ifdef __WIN32__ + #define random rand + #endif + + #include "main.h" + #include "list.h" + #include "tux.h" + #include "arena.h" + #ifndef PUBLIC_SERVER + #include "image.h" + #endif + + typedef struct shot_struct + { + int id; + int x; + int y; + int w; + int h; + int px; + int py; + int position; + int gun; + int author_id; + bool_t isCanKillAuthor; + bool_t del; + #ifndef PUBLIC_SERVER + image_t *img; + #endif + } shot_t; + + extern bool_t isShotInicialized(); + extern void initShot(); + extern shot_t* newShot(int x,int y, int px, int py, int gun, int author_id); + extern shot_t* getShotID(list_t *listShot, int id); + extern void replaceShotID(shot_t *shot, int id); + extern void getStatusShot(void *p, int *id, int *x,int *y, int *w, int *h); + extern void setStatusShot(void *p, int x, int y, int w, int h); + #ifndef PUBLIC_SERVER + extern void drawShot(shot_t *p); + extern void drawListShot(list_t *listShot); + #endif + extern int isConflictWithListShot(list_t *listShot, int x, int y, int w, int h); + extern void eventMoveListShot(arena_t *arena); + extern void checkShotIsInTuxScreen(arena_t *arena); + extern void boundBombBall(shot_t *shot); + extern void transformOnlyLasser(shot_t *shot); + extern void destroyShot(shot_t *p); + extern void quitShot(); #endif |