dxx-rebirth/common/main/scores.h
Kp 9de54cfa74 Switch to C++ linkage
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
	if line == cxxguard:
		guard = 1
		continue
	if guard:
		if line == 'extern "C" {\n':
			guard = 2
			continue
		if line == '}\n':
			guard = 0
			continue
		if guard == 2:
			assert(line == '#endif\n')
			guard = 0
			print cxxguard,
			continue
	print line,
2013-12-06 03:35:32 +00:00

56 lines
1.7 KiB
C

/*
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
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* Scores header.
*
*/
#ifndef _SCORES_H
#define _SCORES_H
#ifdef __cplusplus
#define ROBOT_SCORE 1000
#define HOSTAGE_SCORE 1000
#define CONTROL_CEN_SCORE 5000
#define ENERGY_SCORE 0
#define SHIELD_SCORE 0
#define LASER_SCORE 0
#define DEBRIS_SCORE 0
#define CLUTTER_SCORE 0
#define MISSILE1_SCORE 0
#define MISSILE4_SCORE 0
#define KEY_SCORE 0
#define QUAD_FIRE_SCORE 0
#define VULCAN_AMMO_SCORE 0
#define CLOAK_SCORE 0
#define TURBO_SCORE 0
#define INVULNERABILITY_SCORE 0
#define HEADLIGHT_SCORE 0
struct stats_info;
extern void scores_view(struct stats_info *last_game, int citem);
// If player has a high score, adds you to file and returns.
// If abort_flag set, only show if player has gotten a high score.
extern void scores_maybe_add_player(int abort_flag);
#endif
#endif /* _SCORES_H */