2006-03-20 16:43:15 +00:00
|
|
|
/*
|
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
2010-02-06 05:21:45 +00:00
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
2006-03-20 16:43:15 +00:00
|
|
|
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
2010-02-06 05:21:45 +00:00
|
|
|
|
2006-03-20 16:43:15 +00:00
|
|
|
/*
|
|
|
|
*
|
2010-02-06 05:21:45 +00:00
|
|
|
* Prototypes for functions for game sequencing.
|
2006-03-20 16:43:15 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _GAMESEQ_H
|
|
|
|
#define _GAMESEQ_H
|
|
|
|
|
|
|
|
#include "player.h"
|
|
|
|
#include "mission.h"
|
2010-02-07 07:28:49 +00:00
|
|
|
#include "object.h"
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
#define SUPER_MISSILE 0
|
|
|
|
#define SUPER_SEEKER 1
|
|
|
|
#define SUPER_SMARTBOMB 2
|
|
|
|
#define SUPER_SHOCKWAVE 3
|
2006-03-20 16:43:15 +00:00
|
|
|
|
|
|
|
#ifdef SHAREWARE
|
|
|
|
#define Last_level 7 //the number of the very last level for shareware
|
|
|
|
#define Last_secret_level 0 // No secret levels!
|
2008-01-23 17:25:09 +00:00
|
|
|
// #else
|
|
|
|
// extern int Last_level,Last_secret_level; //set by mission code
|
2006-03-20 16:43:15 +00:00
|
|
|
#endif
|
|
|
|
|
2008-01-23 17:25:09 +00:00
|
|
|
// extern int Secret_level_table[MAX_SECRET_LEVELS_PER_MISSION];
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
#define LEVEL_NAME_LEN 36 //make sure this is multiple of 4!
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// Current_level_num starts at 1 for the first level
|
|
|
|
// -1,-2,-3 are secret levels
|
|
|
|
// 0 means not a real level loaded
|
|
|
|
extern int Current_level_num, Next_level_num;
|
2008-01-19 01:13:47 +00:00
|
|
|
extern char Current_level_name[LEVEL_NAME_LEN];
|
2010-02-06 05:21:45 +00:00
|
|
|
extern obj_position Player_init[MAX_PLAYERS];
|
2006-03-20 16:43:15 +00:00
|
|
|
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// This is the highest level the player has ever reached
|
2006-03-20 16:43:15 +00:00
|
|
|
extern int Player_highest_level;
|
|
|
|
|
|
|
|
//
|
2010-02-06 05:21:45 +00:00
|
|
|
// New game sequencing functions
|
2006-03-20 16:43:15 +00:00
|
|
|
//
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// starts a new game on the given level
|
2006-03-20 16:43:15 +00:00
|
|
|
void StartNewGame(int start_level);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// starts the next level
|
2006-03-20 16:43:15 +00:00
|
|
|
void StartNewLevel(int level_num);
|
|
|
|
|
|
|
|
// Actually does the work to start new level
|
|
|
|
void StartNewLevelSub(int level_num, int page_in_textures);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
void InitPlayerObject(); //make sure player's object set up
|
2012-04-15 13:32:46 +00:00
|
|
|
void init_player_stats_game(ubyte pnum); //clear all stats
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// called when the player has finished a level
|
|
|
|
// if secret flag is true, advance to secret level, else next normal level
|
2006-03-20 16:43:15 +00:00
|
|
|
void PlayerFinishedLevel(int secret_flag);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// called when the player has died
|
|
|
|
void DoPlayerDead(void);
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// load a level off disk. level numbers start at 1.
|
|
|
|
// Secret levels are -1,-2,-3
|
2006-03-20 16:43:15 +00:00
|
|
|
void LoadLevel(int level_num);
|
|
|
|
|
|
|
|
extern void gameseq_remove_unused_players();
|
|
|
|
|
|
|
|
extern void update_player_stats();
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// from scores.c
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
extern void show_high_scores(int place);
|
|
|
|
extern void draw_high_scores(int place);
|
2006-03-20 16:43:15 +00:00
|
|
|
extern int add_player_to_high_scores(player *pp);
|
2010-02-06 05:21:45 +00:00
|
|
|
extern void input_name (int place);
|
2006-03-20 16:43:15 +00:00
|
|
|
extern int reset_high_scores();
|
2013-03-23 21:01:48 +00:00
|
|
|
extern void init_player_stats_level(int secret_flag);
|
2006-03-20 16:43:15 +00:00
|
|
|
|
|
|
|
void open_message_window(void);
|
|
|
|
void close_message_window(void);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// create flash for player appearance
|
2006-03-20 16:43:15 +00:00
|
|
|
extern void create_player_appearance_effect(object *player_obj);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// goto whatever secrect level is appropriate given the current level
|
2006-03-20 16:43:15 +00:00
|
|
|
//extern int goto_secret_level();
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// reset stuff so game is semi-normal when playing from editor
|
2006-03-20 16:43:15 +00:00
|
|
|
void editor_reset_stuff_on_level();
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// Show endlevel bonus scores
|
2006-03-20 16:43:15 +00:00
|
|
|
extern void DoEndLevelScoreGlitz(int network);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
// stuff for multiplayer
|
2006-03-20 16:43:15 +00:00
|
|
|
extern int NumNetPlayerPositions;
|
|
|
|
|
2011-01-14 13:29:36 +00:00
|
|
|
void bash_to_shield(int, char *);
|
|
|
|
|
2010-02-06 05:21:45 +00:00
|
|
|
#endif /* _GAMESEQ_H */
|