use PhysicsFS for saving levels
[btb/d2x.git] / ui / medfunc.c
1 /* $Id: medfunc.c,v 1.3 2004-12-19 15:21:11 btb Exp $ */
2 /*
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.
13 */
14
15 #ifdef RCS
16 static char rcsid[] = "$Id: medfunc.c,v 1.3 2004-12-19 15:21:11 btb Exp $";
17 #endif
18
19 typedef struct {
20         char *  name;
21         int     nparams;
22         double  (*cfunction)(void);
23 } FUNCTION;
24
25 FUNCTION funtable[] = {
26
27 // In khelp.c
28 {   "med-help",                         0,      DoHelp },
29
30 // In kcurve.c
31 {   "med-curve-init",                   0,      InitCurve },
32 {   "med-curve-generate"                0,      GenerateCurve },
33 {   "med-curve-decrease-r4",            0,      DecreaseR4 },
34 {   "med-curve-increase-r4",            0,      IncreaseR4 },
35 {   "med-curve-decrease-r1",            0,      DecreaseR1 },
36 {   "med-curve-increase-r1",            0,      IncreaseR1 },
37 {   "med-curve-delete",                 0,      DeleteCurve },
38 {   "med-curve-set",                    0,      SetCurve },
39
40 // In kmine.c
41 {   "med-mine-save",                    0,      SaveMine },
42 {   "med-mine-load",                    0,      LoadMine },
43 {   "med-mine-menu",                    0,      MineMenu },
44 {   "med-mine-create-new",              0,      CreateNewMine },
45
46
47 // In kview.c
48 {   "med-view-zoom-out",                0,      ZoomOut },
49 {   "med-view-zoom-in",                 0,      ZoomIn },
50 {   "med-view-move-away",               0,      MoveAway },
51 {   "med-view-move-closer",             0,      MoveCloser },
52 {   "med-view-toggle-chase",            0,      ToggleChaseMode },
53
54 // In kbuild.c
55 {   "med-build-bridge",                 0,      CreateBridge },
56 {   "med-build-joint",                  0,      FormJoint },
57 {   "med-build-adj-joint",              0,      CreateAdjacentJoint },
58 {   "med-build-adj-joints-segment",     0,      CreateAdjacentJointsSegment },
59 {   "med-build-adj-joints-all",         0,      CreateAdjacentJointsAll },
60
61 // In ksegmove.c
62 {   "med-segmove-decrease-heading",     0,      DecreaseHeading },
63 {   "med-segmove-increase-heading",     0,      IncreaseHeading },
64 {   "med-segmove-decrease-pitch",       0,      DecreasePitch },
65 {   "med-segmove-increase-pitch",       0,      IncreasePitch },
66 {   "med-segmove-decrease-bank",        0,      DecreaseBank },
67 {   "med-segmove-increase-bank",        0,      IncreaseBank },
68
69 // In ksegsel.c
70 {   "med-segsel-next-segment",          0,      SelectCurrentSegForward },
71 {   "med-segsel-prev-segment",          0,      SelectCurrentSegBackward },
72 {   "med-segsel-next-side",             0,      SelectNextSide },
73 {   "med-segsel-prev-side",             0,      SelectPrevSide },
74 {   "med-segsel-set-marked",            0,      CopySegToMarked },
75 {   "med-segsel-bottom",                0,      SelectBottom },
76 {   "med-segsel-front",                 0,      SelectFront },
77 {   "med-segsel-top",                   0,      SelectTop },
78 {   "med-segsel-back",                  0,      SelectBack },
79 {   "med-segsel-left",                  0,      SelectLeft },
80 {   "med-segsel-right",                 0,      SelectRight },
81
82 // In ksegsize.c
83 {   "med-segsize-increase-length",      0,      IncreaseSegLength },
84 {   "med-segsize-decrease-length",      0,      DecreaseSegLength },
85 {   "med-segsize-decrease-width",       0,      DecreaseSegWidth },
86 {   "med-segsize-increase-width",       0,      IncreaseSegWidth },
87 {   "med-segsize-increase-height",      0,      IncreaseSegHeight },
88 {   "med-segsize-decrease-height",      0,      DecreaseSegHeight },
89
90 {   "med-segsize-increase-length-big",  0,      IncreaseSegLengthBig },
91 {   "med-segsize-decrease-length-big",  0,      DecreaseSegLengthBig },
92 {   "med-segsize-decrease-width-big",   0,      DecreaseSegWidthBig },
93 {   "med-segsize-increase-width-big",   0,      IncreaseSegWidthBig },
94 {   "med-segsize-increase-height-big",  0,      IncreaseSegHeightBig },
95 {   "med-segsize-decrease-height-big",  0,      DecreaseSegHeightBig },
96
97 //      In ktmap.c
98 {   "med-tmap-assign",                  0,      AssignTexture },
99 {   "med-tmap-propogate",               0,      PropagateTextures },
100 {   "med-tmap-propogate-selected",      0,      PropagateTexturesSelected },
101
102 // In macro.c
103 {   "med-macro-menu",                   0,      MacroMenu },
104 {   "med-macro-play-fast",              0,      MacroPlayFast },
105 {   "med-macro-play-normal",            0,      MacroPlayNormal },
106 {   "med-macro-record-all",             0,      MacroRecordAll },
107 {   "med-macro-record-keys",            0,      MacroRecordKeys },
108 {   "med-macro-save",                   0,      MacroSave },
109 {   "med-macro-load",                   0,      MacroLoad },
110
111
112 // The terminating marker
113 {   NULL, 0, NULL } };
114
115