91 lines
2.8 KiB
C
91 lines
2.8 KiB
C
void cleanup(void);
|
|
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);
|
|
void drawscore(void);
|
|
void drawbosshealth(void);
|
|
void drawtext(void);
|
|
void movetext(void);
|
|
void removeall(void);
|
|
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);
|
|
void bouncesprite(sprite_t *s);
|
|
int movesprite(sprite_t *s);
|
|
int isinwater(sprite_t *s);
|
|
int isinwaterpoint(int x, int y);
|
|
int isroofabove(sprite_t *s);
|
|
int isroofnabove(sprite_t *s,int howfar);
|
|
int isonground(sprite_t *s);
|
|
int isongroundpoint(sprite_t *s, int x, int y);
|
|
int isonladder(sprite_t *s);
|
|
int isonbridge(sprite_t *s);
|
|
int isladderabove(sprite_t *s);
|
|
int dofruiteffect(sprite_t *s);
|
|
void checkcollide(sprite_t *s);
|
|
void die(sprite_t *s);
|
|
void nextlevel(void);
|
|
void jump(sprite_t *s, int dir);
|
|
double getspeed(sprite_t *s );
|
|
void adjustheight(sprite_t *s);
|
|
void adjustx(sprite_t *s, int newframe);
|
|
void tick(void);
|
|
void usage(void);
|
|
int canmove(sprite_t *pl);
|
|
int canturn(sprite_t *pl);
|
|
int initsound(void);
|
|
int loadfx(int sid, char *filename);
|
|
void playfx(int num);
|
|
void playmusic(Mix_Music *toplay);
|
|
void stopmusic(void);
|
|
void channeldone(int channel);
|
|
void movetostart(sprite_t *p, int dstx, int dsty, double xspeed,double yspeed);
|
|
SDL_Surface *grabbehind(sprite_t *s, SDL_Surface *surf);
|
|
void dumpsprites(void);
|
|
int countmonsters(void);
|
|
int getpoints(int id);
|
|
int isladder(int tid);
|
|
char *addcommas(char *buffer, int num);
|
|
void addscore(sprite_t *s, int amt);
|
|
void extralife(sprite_t *s);
|
|
void doice(void);
|
|
void doflood(void);
|
|
void undoflood(void);
|
|
void checklevelend(void);
|
|
void checksprites(void);
|
|
void moveallsprites(void);
|
|
void checkcollideall(void);
|
|
void drawallsprites(void);
|
|
void checkwrap(sprite_t *s);
|
|
int getcurworld(void);
|
|
int getcurlevel(void);
|
|
int getmonjumpspeed(sprite_t *s);
|
|
int getjumpdelay(int mid);
|
|
void togglepause(void);
|
|
void togglefullscreen(void);
|
|
void initsdl(void);
|
|
void getfruit(sprite_t *giveto, sprite_t *fruit, int multiplier);
|
|
int haspowerup(sprite_t *s, int pid);
|
|
void gaincard(sprite_t *s, int cardid);
|
|
int getpokereffect(sprite_t *pl);
|
|
void dopokereffect(sprite_t *pl, int effect);
|
|
char *getpokermsg(int effect);
|
|
char *getpokermsg2(int effect, char *buf);
|
|
void handleinput(void);
|
|
int keydown(int checkfor);
|
|
void trytojump(sprite_t *pl);
|
|
void trytoshoot(sprite_t *pl);
|
|
void docannoneffect(void);
|
|
void dotitlescreen(void);
|
|
void startgame(void);
|
|
void uncatch(sprite_t *s);
|
|
void makeinvuln(sprite_t *s);
|
|
void handletitleinput(int key);
|
|
void setjoymappings(void);
|
|
int keytojoybutton(int key);
|
|
int joybuttontokey(int buttonnum);
|
|
void drawcredits(void);
|