| 1 |
/* |
| 2 |
* Portions of this file are copyright Rebirth contributors and licensed as |
| 3 |
* described in COPYING.txt. |
| 4 |
* Portions of this file are copyright Parallax Software and licensed |
| 5 |
* according to the Parallax license below. |
| 6 |
* See COPYING.txt for license details. |
| 7 |
|
| 8 |
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
| 9 |
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
| 10 |
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
| 11 |
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
| 12 |
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
| 13 |
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
| 14 |
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
| 15 |
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
| 16 |
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
| 17 |
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
| 18 |
*/ |
| 19 |
|
| 20 |
#pragma once |
| 21 |
|
| 22 |
#include "dsx-ns.h" |
| 23 |
|
| 24 |
#ifdef DXX_BUILD_DESCENT |
| 25 |
// In khelp.c |
| 26 |
int DoHelp(); |
| 27 |
|
| 28 |
// In kcurve.c |
| 29 |
int InitCurve(); |
| 30 |
int GenerateCurve(); |
| 31 |
int DecreaseR4(); |
| 32 |
int IncreaseR4(); |
| 33 |
int DecreaseR1(); |
| 34 |
int IncreaseR1(); |
| 35 |
int DeleteCurve(); |
| 36 |
int SetCurve(); |
| 37 |
|
| 38 |
// In kmine.c |
| 39 |
int SaveMine(); |
| 40 |
int LoadMine(); |
| 41 |
int MineMenu(); |
| 42 |
int CreateNewMine(); |
| 43 |
int LoadOldMine(); |
| 44 |
|
| 45 |
int SaveSituation(); |
| 46 |
int LoadSituation(); |
| 47 |
|
| 48 |
// In kgame.c |
| 49 |
int SetPlayerPosition(void); |
| 50 |
int SaveGameData(); |
| 51 |
int LoadGameData(); |
| 52 |
int LoadMineOnly(); |
| 53 |
void ResetFilename(); |
| 54 |
|
| 55 |
// In group.c |
| 56 |
int LoadGroup(); |
| 57 |
int SaveGroup(); |
| 58 |
int PrevGroup(); |
| 59 |
int NextGroup(); |
| 60 |
int CreateGroup(); |
| 61 |
int SubtractFromGroup(); |
| 62 |
int DeleteGroup(); |
| 63 |
int MarkGroupSegment(); |
| 64 |
int MoveGroup(void); |
| 65 |
int CopyGroup(void); |
| 66 |
int AttachSegmentNew(); |
| 67 |
int UngroupSegment(); |
| 68 |
int GroupSegment(); |
| 69 |
int Degroup(); |
| 70 |
int RotateGroup(); |
| 71 |
|
| 72 |
// In segment.c |
| 73 |
int ToggleBottom(); |
| 74 |
#if DXX_BUILD_DESCENT == 2 |
| 75 |
int select_segment_by_number(); |
| 76 |
int select_segment_with_powerup(); |
| 77 |
#endif |
| 78 |
|
| 79 |
// In editor.c |
| 80 |
int UndoCommand(); |
| 81 |
|
| 82 |
// In kview.c |
| 83 |
int ZoomOut(); |
| 84 |
int ZoomIn(); |
| 85 |
int MoveAway(); |
| 86 |
int MoveCloser(); |
| 87 |
int ToggleChaseMode(); |
| 88 |
|
| 89 |
// In kbuild.c |
| 90 |
int CreateBridge(); |
| 91 |
int FormJoint(); |
| 92 |
int CreateAdjacentJoint(); |
| 93 |
int CreateAdjacentJointsSegment(); |
| 94 |
int CreateAdjacentJointsAll(); |
| 95 |
int CreateSloppyAdjacentJoint(); |
| 96 |
int CreateSloppyAdjacentJointsGroup(); |
| 97 |
|
| 98 |
// In ksegmove.c |
| 99 |
int DecreaseHeading(); |
| 100 |
int IncreaseHeading(); |
| 101 |
int DecreasePitch(); |
| 102 |
int IncreasePitch(); |
| 103 |
int DecreaseBank(); |
| 104 |
int IncreaseBank(); |
| 105 |
|
| 106 |
// In ksegsel.c |
| 107 |
int SelectCurrentSegForward(); |
| 108 |
int SelectCurrentSegBackward(); |
| 109 |
int SelectNextSide(); |
| 110 |
int SelectPrevSide(); |
| 111 |
int CopySegToMarked(); |
| 112 |
int SelectBottom(); |
| 113 |
int SelectFront(); |
| 114 |
int SelectTop(); |
| 115 |
int SelectBack(); |
| 116 |
int SelectLeft(); |
| 117 |
int SelectRight(); |
| 118 |
|
| 119 |
// In ksegsize.c |
| 120 |
namespace dsx { |
| 121 |
int IncreaseSegLength(); |
| 122 |
int DecreaseSegLength(); |
| 123 |
int DecreaseSegWidth(); |
| 124 |
int IncreaseSegWidth(); |
| 125 |
int IncreaseSegHeight(); |
| 126 |
int DecreaseSegHeight(); |
| 127 |
int ToggleSegSizeMode(); |
| 128 |
int PerturbCurside(); |
| 129 |
int PerturbCursideBig(); |
| 130 |
|
| 131 |
int IncreaseSegLengthBig(); |
| 132 |
int DecreaseSegLengthBig(); |
| 133 |
int DecreaseSegWidthBig(); |
| 134 |
int IncreaseSegWidthBig(); |
| 135 |
int IncreaseSegHeightBig(); |
| 136 |
int DecreaseSegHeightBig(); |
| 137 |
|
| 138 |
int IncreaseSegLengthDefault(); |
| 139 |
int DecreaseSegLengthDefault(); |
| 140 |
int IncreaseSegWidthDefault(); |
| 141 |
int DecreaseSegWidthDefault(); |
| 142 |
int IncreaseSegHeightDefault(); |
| 143 |
int DecreaseSegHeightDefault(); |
| 144 |
int do_trigger_dialog(); |
| 145 |
} |
| 146 |
|
| 147 |
// In ktmap.c |
| 148 |
int AssignTexture(); |
| 149 |
int AssignTexture2(); |
| 150 |
int ClearTexture2(); |
| 151 |
int PropagateTextures(); |
| 152 |
int PropagateTexturesMove(); |
| 153 |
int PropagateTexturesMoveUVs(); |
| 154 |
int PropagateTexturesUVs(); |
| 155 |
int PropagateTexturesSelected(); |
| 156 |
|
| 157 |
//--//// In macro.c |
| 158 |
//--//int MacroMenu(); |
| 159 |
//--//int MacroPlayFast(); |
| 160 |
//--//int MacroPlayNormal(); |
| 161 |
//--//int MacroRecordAll(); |
| 162 |
//--//int MacroRecordKeys(); |
| 163 |
//--//int MacroSave(); |
| 164 |
//--//int MacroLoad(); |
| 165 |
|
| 166 |
// In editor.c |
| 167 |
int AttachSegment(); |
| 168 |
int DeleteSegment(); |
| 169 |
int CallLisp(); |
| 170 |
int ExitEditor(); |
| 171 |
int ShowAbout(); |
| 172 |
int ExchangeMarkandCurseg(); |
| 173 |
#if DXX_BUILD_DESCENT == 2 |
| 174 |
int CopySegtoMarked(); |
| 175 |
#endif |
| 176 |
int med_keypad_goto_prev(); |
| 177 |
int med_keypad_goto_next(); |
| 178 |
int med_keypad_goto(); |
| 179 |
int med_increase_tilings(); |
| 180 |
int med_decrease_tilings(); |
| 181 |
int ToggleAutosave(); |
| 182 |
int MarkEnd(); |
| 183 |
|
| 184 |
// Texture.c |
| 185 |
int TexFlipX(); |
| 186 |
int TexFlipY(); |
| 187 |
int TexSlideUp(); |
| 188 |
int TexSlideLeft(); |
| 189 |
int TexSetDefault(); |
| 190 |
#if DXX_BUILD_DESCENT == 2 |
| 191 |
int TexSetDefaultSelected(); |
| 192 |
#endif |
| 193 |
int TexSlideRight(); |
| 194 |
int TexRotateLeft(); |
| 195 |
int TexSlideDown(); |
| 196 |
int TexRotateRight(); |
| 197 |
int TexSelectActiveEdge(); |
| 198 |
int TexRotate90Degrees(); |
| 199 |
int TexIncreaseTiling(); |
| 200 |
int TexDecreaseTiling(); |
| 201 |
int TexSlideUpBig(); |
| 202 |
int TexSlideLeftBig(); |
| 203 |
int TexSlideRightBig(); |
| 204 |
int TexRotateLeftBig(); |
| 205 |
int TexSlideDownBig(); |
| 206 |
int TexRotateRightBig(); |
| 207 |
int TexStretchDown(); |
| 208 |
int TexStretchUp(); |
| 209 |
#if DXX_BUILD_DESCENT == 2 |
| 210 |
int TexChangeAll(); |
| 211 |
int TexChangeAll2(); |
| 212 |
#endif |
| 213 |
|
| 214 |
// object.c |
| 215 |
namespace dsx { |
| 216 |
int ObjectPlaceObject(); |
| 217 |
int ObjectMakeCoop(); |
| 218 |
int ObjectPlaceObjectTmap(); |
| 219 |
int ObjectDelete(); |
| 220 |
int ObjectMoveForward(); |
| 221 |
int ObjectMoveLeft(); |
| 222 |
int ObjectSetDefault(); |
| 223 |
int ObjectMoveRight(); |
| 224 |
int ObjectMoveBack(); |
| 225 |
int ObjectMoveDown(); |
| 226 |
int ObjectMoveUp(); |
| 227 |
int ObjectMoveNearer(); |
| 228 |
int ObjectMoveFurther(); |
| 229 |
int ObjectSelectNextinSegment(); |
| 230 |
int ObjectSelectNextType(); |
| 231 |
|
| 232 |
template <int p, int b, int h> |
| 233 |
int ObjectChangeRotation(); |
| 234 |
|
| 235 |
#define ROTATION_UNIT (4096/4) |
| 236 |
|
| 237 |
#define ObjectDecreaseBank ObjectChangeRotation<0, -ROTATION_UNIT, 0> |
| 238 |
#define ObjectIncreaseBank ObjectChangeRotation<0, ROTATION_UNIT, 0> |
| 239 |
#define ObjectDecreasePitch ObjectChangeRotation<-ROTATION_UNIT, 0, 0> |
| 240 |
#define ObjectIncreasePitch ObjectChangeRotation<ROTATION_UNIT, 0, 0> |
| 241 |
#define ObjectDecreaseHeading ObjectChangeRotation<0, 0, -ROTATION_UNIT> |
| 242 |
#define ObjectIncreaseHeading ObjectChangeRotation<0, 0, ROTATION_UNIT> |
| 243 |
|
| 244 |
#define ObjectDecreaseBankBig ObjectChangeRotation<0, -(ROTATION_UNIT*4), 0> |
| 245 |
#define ObjectIncreaseBankBig ObjectChangeRotation<0, (ROTATION_UNIT*4), 0> |
| 246 |
#define ObjectDecreasePitchBig ObjectChangeRotation<-(ROTATION_UNIT*4), 0, 0> |
| 247 |
#define ObjectIncreasePitchBig ObjectChangeRotation<(ROTATION_UNIT*4), 0, 0> |
| 248 |
#define ObjectDecreaseHeadingBig ObjectChangeRotation<0, 0, -(ROTATION_UNIT*4)> |
| 249 |
#define ObjectIncreaseHeadingBig ObjectChangeRotation<0, 0, (ROTATION_UNIT*4)> |
| 250 |
|
| 251 |
int ObjectResetObject(); |
| 252 |
} |
| 253 |
|
| 254 |
// elight.c |
| 255 |
int LightSelectNextVertex(); |
| 256 |
int LightSelectNextEdge(); |
| 257 |
int LightCopyIntensity(); |
| 258 |
int LightCopyIntensitySegment(); |
| 259 |
int LightDecreaseLightVertex(); |
| 260 |
int LightIncreaseLightVertex(); |
| 261 |
int LightDecreaseLightSide(); |
| 262 |
int LightIncreaseLightSide(); |
| 263 |
int LightDecreaseLightSegment(); |
| 264 |
int LightIncreaseLightSegment(); |
| 265 |
int LightSetMaximum(); |
| 266 |
int LightSetDefault(); |
| 267 |
int LightSetDefaultAll(); |
| 268 |
int LightAmbientLighting(); |
| 269 |
|
| 270 |
// seguvs.c |
| 271 |
namespace dsx { |
| 272 |
int fix_bogus_uvs_on_side(); |
| 273 |
int fix_bogus_uvs_all(); |
| 274 |
} |
| 275 |
int set_average_light_on_curside(void); |
| 276 |
int set_average_light_on_all(void); |
| 277 |
int set_average_light_on_all_quick(void); |
| 278 |
|
| 279 |
// Miscellaneous, please put in correct file if you have time |
| 280 |
int GotoMainMenu(); |
| 281 |
int GotoGameScreen(); |
| 282 |
int DropIntoDebugger(); |
| 283 |
int CreateDefaultNewSegment(); |
| 284 |
int CreateDefaultNewSegmentandAttach(); |
| 285 |
int ClearSelectedList(); |
| 286 |
int ClearFoundList(); |
| 287 |
int SetPlayerFromCurseg(); |
| 288 |
int SetPlayerFromCursegAndRotate(); |
| 289 |
int SetPlayerFromCursegMinusOne(); |
| 290 |
int FindConcaveSegs(); |
| 291 |
int do_reset_orient(); |
| 292 |
int GameZoomOut(); |
| 293 |
int GameZoomIn(); |
| 294 |
|
| 295 |
// John's temp page stuff |
| 296 |
int medtmp_set_page(); |
| 297 |
|
| 298 |
// In objpage.c |
| 299 |
int objpage_goto_next_object(); |
| 300 |
|
| 301 |
// In medsel.c |
| 302 |
extern int SortSelectedList(void); |
| 303 |
extern int SelectNextFoundSeg(void); |
| 304 |
extern int SelectPreviousFoundSeg(void); |
| 305 |
|
| 306 |
// In wall.c |
| 307 |
extern int wall_add_blastable(void); |
| 308 |
extern int wall_add_closed_wall(void); |
| 309 |
extern int wall_add_external_wall(void); |
| 310 |
extern int wall_lock_door(void); |
| 311 |
extern int wall_automate_door(void); |
| 312 |
extern int wall_deautomate_door(void); |
| 313 |
extern int wall_assign_door_1(void); |
| 314 |
extern int wall_assign_door_2(void); |
| 315 |
extern int wall_assign_door_3(void); |
| 316 |
extern int wall_assign_door_4(void); |
| 317 |
extern int wall_assign_door_5(void); |
| 318 |
extern int wall_assign_door_6(void); |
| 319 |
extern int wall_assign_door_7(void); |
| 320 |
extern int wall_assign_door_8(void); |
| 321 |
extern int do_wall_dialog(void); |
| 322 |
extern int check_walls(void); |
| 323 |
extern int delete_all_walls(void); |
| 324 |
#if DXX_BUILD_DESCENT == 2 |
| 325 |
extern int delete_all_controlcen_triggers(void); |
| 326 |
#endif |
| 327 |
|
| 328 |
// In switch.c |
| 329 |
//extern int trigger_add_damage(void); |
| 330 |
//extern int trigger_add_blank(void); |
| 331 |
//extern int trigger_add_exit(void); |
| 332 |
//extern int trigger_add_repair(void); |
| 333 |
//extern int trigger_control(void); |
| 334 |
//extern int trigger_remove(void); |
| 335 |
//extern int trigger_add_if_control_center_dead(void); |
| 336 |
extern int bind_wall_to_control_trigger(void); |
| 337 |
|
| 338 |
// In med.c |
| 339 |
extern int fuelcen_create_from_curseg(); |
| 340 |
extern int repaircen_create_from_curseg(); |
| 341 |
extern int controlcen_create_from_curseg(); |
| 342 |
extern int robotmaker_create_from_curseg(); |
| 343 |
extern int fuelcen_reset_all(); |
| 344 |
extern int RestoreGameState(); |
| 345 |
extern int fuelcen_delete_from_curseg(); |
| 346 |
#if DXX_BUILD_DESCENT == 2 |
| 347 |
extern int goal_blue_create_from_curseg(); |
| 348 |
extern int goal_red_create_from_curseg(); |
| 349 |
#endif |
| 350 |
|
| 351 |
// In editor\robot.c |
| 352 |
extern int do_robot_dialog(); |
| 353 |
extern int do_object_dialog(); |
| 354 |
|
| 355 |
#endif |