1 /* $Id: gameseq.h,v 1.5 2004-10-24 12:46:49 schaffner Exp $ */
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
17 * Prototypes for functions for game sequencing.
28 #define SUPER_MISSILE 0
29 #define SUPER_SEEKER 1
30 #define SUPER_SMARTBOMB 2
31 #define SUPER_SHOCKWAVE 3
33 #define LEVEL_NAME_LEN 36 //make sure this is multiple of 4!
35 // Current_level_num starts at 1 for the first level
36 // -1,-2,-3 are secret levels
37 // 0 means not a real level loaded
38 extern int Current_level_num, Next_level_num;
39 extern char Current_level_name[LEVEL_NAME_LEN];
40 extern obj_position Player_init[MAX_PLAYERS];
43 // This is the highest level the player has ever reached
44 extern int Player_highest_level;
47 // New game sequencing functions
50 // called once at program startup to get the player's name
53 // Inputs the player's name, without putting up the background screen
54 int RegisterPlayerSub(int allow_abort_flag);
56 // starts a new game on the given level
57 void StartNewGame(int start_level);
59 // starts the next level
60 void StartNewLevel(int level_num, int secret_flag);
61 void StartLevel(int random_flag);
63 // Actually does the work to start new level
64 void StartNewLevelSub(int level_num, int page_in_textures, int secret_flag);
66 void InitPlayerObject(); //make sure player's object set up
67 void init_player_stats_game(); //clear all stats
69 // starts a resumed game loaded from disk
70 void ResumeSavedGame(int start_level);
72 // called when the player has finished a level
73 // if secret flag is true, advance to secret level, else next normal level
74 void PlayerFinishedLevel(int secret_flag);
76 // called when the player has died
77 void DoPlayerDead(void);
79 // load a level off disk. level numbers start at 1.
80 // Secret levels are -1,-2,-3
81 void LoadLevel(int level_num, int page_in_textures);
83 extern void gameseq_remove_unused_players();
85 extern void show_help();
86 extern void update_player_stats();
90 extern void show_high_scores(int place);
91 extern void draw_high_scores(int place);
92 extern int add_player_to_high_scores(player *pp);
93 extern void input_name (int place);
94 extern int reset_high_scores();
95 extern void init_player_stats_level(int secret_flag);
97 void open_message_window(void);
98 void close_message_window(void);
100 // create flash for player appearance
101 extern void create_player_appearance_effect(object *player_obj);
103 // goto whatever secrect level is appropriate given the current level
104 extern void goto_secret_level();
106 // reset stuff so game is semi-normal when playing from editor
107 void editor_reset_stuff_on_level();
109 // Show endlevel bonus scores
110 extern void DoEndLevelScoreGlitz(int network);
112 // stuff for multiplayer
113 extern int MaxNumNetPlayers;
114 extern int NumNetPlayerPositions;
116 void bash_to_shield(int, char *);
118 #endif /* _GAMESEQ_H */