dxx-rebirth/common/include/editor/medwall.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

72 lines
1.8 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-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* Created from version 1.6 of main\wall.h
*
*/
#ifndef _MEDWALL_H
#define _MEDWALL_H
#include "wall.h"
#include "inferno.h"
#include "segment.h"
#ifdef __cplusplus
// Restores all the walls to original status
extern int wall_restore_all();
// Reset a wall.
extern void wall_reset(segment *seg, short side);
// Adds a removable wall (medwall.c)
extern int wall_add_removable();
// Adds a door (medwall.c)
extern int wall_add_door();
// Adds an illusory wall (medwall.c)
extern int wall_add_illusion();
// Removes a removable wall (medwall.c)
extern int wall_remove_blastable();
// Adds a wall. (visually)
extern int wall_add_to_curside();
extern int wall_add_to_markedside(sbyte type);
// Removes a wall. (visually)
extern int wall_remove();
// Removes a specific side.
int wall_remove_side(segment *seg, short side);
extern int bind_wall_to_control_center();
extern void close_wall_window();
extern void do_wall_window();
extern int wall_link_doors();
extern int wall_unlink_door();
extern void copy_group_walls(int old_group, int new_group);
void check_wall_validity(void);
#endif
#endif