2006-01-27 17:27:57 +11:00
|
|
|
void cleanup(void);
|
2008-10-17 22:15:27 +11:00
|
|
|
int addtext(int x, int y, int size, char *string, SDL_Color *c, int delay, int ttype);
|
|
|
|
void addoutlinetext(int x, int y, int size, char *msg, SDL_Color *col, SDL_Color *bgcol, int delay, int ttype);
|
2006-01-31 17:18:01 +11:00
|
|
|
void drawscore(void);
|
2008-10-07 16:53:06 +11:00
|
|
|
void drawbosshealth(void);
|
2006-01-27 17:28:28 +11:00
|
|
|
void drawtext(void);
|
|
|
|
void movetext(void);
|
2006-01-31 17:18:01 +11:00
|
|
|
void removeall(void);
|
2006-01-27 17:27:57 +11:00
|
|
|
void drawlevel(void);
|
|
|
|
void removesprite(sprite_t *s);
|
|
|
|
void removenetting(sprite_t *s);
|
|
|
|
void drawnetting(sprite_t *s);
|
|
|
|
void dogravity(sprite_t *s);
|
|
|
|
void dotileeffects(sprite_t *s);
|
|
|
|
int movex(sprite_t *s,double amt);
|
2008-09-27 16:02:42 +10:00
|
|
|
void bouncesprite(sprite_t *s);
|
2008-10-07 18:58:36 +11:00
|
|
|
int movesprite(sprite_t *s);
|
2006-11-06 20:16:19 +11:00
|
|
|
int isinwater(sprite_t *s);
|
2008-09-29 18:32:56 +10:00
|
|
|
int isinwaterpoint(int x, int y);
|
2006-11-06 20:16:19 +11:00
|
|
|
int isroofabove(sprite_t *s);
|
2008-09-16 12:39:33 +10:00
|
|
|
int isroofnabove(sprite_t *s,int howfar);
|
2006-01-27 17:27:57 +11:00
|
|
|
int isonground(sprite_t *s);
|
|
|
|
int isongroundpoint(sprite_t *s, int x, int y);
|
|
|
|
int isonladder(sprite_t *s);
|
2008-09-26 19:51:17 +10:00
|
|
|
int isonbridge(sprite_t *s);
|
2006-01-27 17:27:57 +11:00
|
|
|
int isladderabove(sprite_t *s);
|
2006-01-31 17:18:01 +11:00
|
|
|
int dofruiteffect(sprite_t *s);
|
2006-01-27 17:27:57 +11:00
|
|
|
void checkcollide(sprite_t *s);
|
2006-01-30 09:08:01 +11:00
|
|
|
void die(sprite_t *s);
|
2006-01-31 17:18:01 +11:00
|
|
|
void nextlevel(void);
|
2006-01-30 09:08:01 +11:00
|
|
|
void jump(sprite_t *s, int dir);
|
2006-01-31 17:18:01 +11:00
|
|
|
double getspeed(sprite_t *s );
|
2006-01-27 17:27:57 +11:00
|
|
|
void adjustheight(sprite_t *s);
|
2008-10-03 21:11:07 +10:00
|
|
|
void adjustx(sprite_t *s, int newframe);
|
2006-01-31 17:18:01 +11:00
|
|
|
void tick(void);
|
2008-09-16 12:39:33 +10:00
|
|
|
void usage(void);
|
2008-09-26 19:51:17 +10:00
|
|
|
int canmove(sprite_t *pl);
|
|
|
|
int canturn(sprite_t *pl);
|
|
|
|
int initsound(void);
|
|
|
|
int loadfx(int sid, char *filename);
|
|
|
|
void playfx(int num);
|
2008-09-27 16:02:42 +10:00
|
|
|
void playmusic(Mix_Music *toplay);
|
|
|
|
void stopmusic(void);
|
|
|
|
void channeldone(int channel);
|
2008-10-01 17:27:44 +10:00
|
|
|
void movetostart(sprite_t *p, int dstx, int dsty, double xspeed,double yspeed);
|
2008-09-28 13:18:36 +10:00
|
|
|
SDL_Surface *grabbehind(sprite_t *s, SDL_Surface *surf);
|
2008-09-28 13:31:46 +10:00
|
|
|
void dumpsprites(void);
|
2008-10-07 16:53:06 +11:00
|
|
|
int countmonsters(void);
|
2008-09-28 14:09:12 +10:00
|
|
|
int getpoints(int id);
|
2008-09-30 17:42:09 +10:00
|
|
|
int isladder(int tid);
|
2008-10-01 22:42:59 +10:00
|
|
|
char *addcommas(char *buffer, int num);
|
2008-10-23 07:34:58 +11:00
|
|
|
int addscore(sprite_t *s, int amt);
|
2008-10-10 11:51:40 +11:00
|
|
|
void extralife(sprite_t *s);
|
2008-10-03 21:11:07 +10:00
|
|
|
void doice(void);
|
2008-10-13 11:43:01 +11:00
|
|
|
void doflood(void);
|
2008-10-17 13:05:54 +11:00
|
|
|
void undoflood(void);
|
2008-10-07 16:53:06 +11:00
|
|
|
void checklevelend(void);
|
2008-10-07 18:58:36 +11:00
|
|
|
void checksprites(void);
|
|
|
|
void moveallsprites(void);
|
|
|
|
void checkcollideall(void);
|
|
|
|
void drawallsprites(void);
|
2008-10-09 14:32:15 +11:00
|
|
|
void checkwrap(sprite_t *s);
|
|
|
|
int getcurworld(void);
|
|
|
|
int getcurlevel(void);
|
|
|
|
int getmonjumpspeed(sprite_t *s);
|
|
|
|
int getjumpdelay(int mid);
|
2008-10-10 07:03:17 +11:00
|
|
|
void togglepause(void);
|
|
|
|
void togglefullscreen(void);
|
|
|
|
void initsdl(void);
|
2008-10-10 12:30:40 +11:00
|
|
|
void getfruit(sprite_t *giveto, sprite_t *fruit, int multiplier);
|
2008-10-15 06:36:51 +11:00
|
|
|
int haspowerup(sprite_t *s, int pid);
|
2008-10-15 14:20:10 +11:00
|
|
|
void gaincard(sprite_t *s, int cardid);
|
|
|
|
int getpokereffect(sprite_t *pl);
|
|
|
|
void dopokereffect(sprite_t *pl, int effect);
|
|
|
|
char *getpokermsg(int effect);
|
2008-10-16 16:51:30 +11:00
|
|
|
char *getpokermsg2(int effect, char *buf);
|
2008-10-16 12:47:09 +11:00
|
|
|
void handleinput(void);
|
|
|
|
int keydown(int checkfor);
|
|
|
|
void trytojump(sprite_t *pl);
|
|
|
|
void trytoshoot(sprite_t *pl);
|
|
|
|
void docannoneffect(void);
|
2008-10-16 14:47:16 +11:00
|
|
|
void dotitlescreen(void);
|
2008-10-18 14:18:24 +11:00
|
|
|
void startgame(void);
|
2008-10-19 20:00:03 +11:00
|
|
|
void uncatch(sprite_t *s);
|
2008-10-20 09:58:54 +11:00
|
|
|
void makeinvuln(sprite_t *s);
|
2008-10-21 07:38:40 +11:00
|
|
|
void handletitleinput(int key);
|
|
|
|
void setjoymappings(void);
|
|
|
|
int keytojoybutton(int key);
|
|
|
|
int joybuttontokey(int buttonnum);
|
2008-10-21 08:40:00 +11:00
|
|
|
void drawcredits(void);
|
2008-10-23 06:40:10 +11:00
|
|
|
int drawoutlinetext(SDL_Surface *where,int x, int y, int size, char *msg, SDL_Color *col, SDL_Color *bgcol);
|
2008-10-22 11:51:09 +11:00
|
|
|
void drawoutlinetextcentre(SDL_Surface *where,int y, int size, char *msg, SDL_Color *col, SDL_Color *bgcol);
|
2008-10-22 12:38:31 +11:00
|
|
|
int socket_readline(int sock, char *out);
|
2008-10-22 11:51:09 +11:00
|
|
|
void showhiscores(void);
|
2008-10-23 06:40:10 +11:00
|
|
|
void checkhiscores(void);
|
|
|
|
int gethiscores(void);
|
2008-10-23 14:21:15 +11:00
|
|
|
void drawhiscores(void);
|
2008-10-23 06:40:10 +11:00
|
|
|
int submithiscore(int score,int level, char *name);
|
2008-10-23 14:27:54 +11:00
|
|
|
void getinput(void);
|