1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
20 /* values for TapeTogglePause() */
21 #define TAPE_TOGGLE_MANUAL TRUE
22 #define TAPE_TOGGLE_AUTOMATIC FALSE
24 /* some positions in the video tape control window */
25 #define VIDEO_DISPLAY1_XPOS 5
26 #define VIDEO_DISPLAY1_YPOS 5
27 #define VIDEO_DISPLAY2_XPOS 5
28 #define VIDEO_DISPLAY2_YPOS 41
29 #define VIDEO_DISPLAY_XSIZE 90
30 #define VIDEO_DISPLAY_YSIZE 31
31 #define VIDEO_BUTTON_XSIZE 18
32 #define VIDEO_BUTTON_YSIZE 18
33 #define VIDEO_CONTROL_XPOS 5
34 #define VIDEO_CONTROL_YPOS 77
35 #define VIDEO_CONTROL_XSIZE VIDEO_DISPLAY_XSIZE
36 #define VIDEO_CONTROL_YSIZE VIDEO_BUTTON_YSIZE
38 /* values for video tape control */
39 #define VIDEO_STATE_PLAY_OFF (1 << 0)
40 #define VIDEO_STATE_PLAY_ON (1 << 1)
41 #define VIDEO_STATE_PLAY (VIDEO_STATE_PLAY_OFF | VIDEO_STATE_PLAY_ON)
42 #define VIDEO_STATE_REC_OFF (1 << 2)
43 #define VIDEO_STATE_REC_ON (1 << 3)
44 #define VIDEO_STATE_REC (VIDEO_STATE_REC_OFF | VIDEO_STATE_REC_ON)
45 #define VIDEO_STATE_PAUSE_OFF (1 << 4)
46 #define VIDEO_STATE_PAUSE_ON (1 << 5)
47 #define VIDEO_STATE_PAUSE (VIDEO_STATE_PAUSE_OFF | VIDEO_STATE_PAUSE_ON)
48 #define VIDEO_STATE_DATE_OFF (1 << 6)
49 #define VIDEO_STATE_DATE_ON (1 << 7)
50 #define VIDEO_STATE_DATE (VIDEO_STATE_DATE_OFF | VIDEO_STATE_DATE_ON)
51 #define VIDEO_STATE_TIME_OFF (1 << 8)
52 #define VIDEO_STATE_TIME_ON (1 << 9)
53 #define VIDEO_STATE_TIME (VIDEO_STATE_TIME_OFF | VIDEO_STATE_TIME_ON)
55 #define VIDEO_STATE_FFWD_OFF (1 << 10)
56 #define VIDEO_STATE_FFWD_ON (1 << 11)
57 #define VIDEO_STATE_FFWD (VIDEO_STATE_FFWD_OFF | VIDEO_STATE_FFWD_ON)
58 #define VIDEO_STATE_PBEND_OFF (1 << 12)
59 #define VIDEO_STATE_PBEND_ON (1 << 13)
60 #define VIDEO_STATE_PBEND (VIDEO_STATE_PBEND_OFF | VIDEO_STATE_PBEND_ON)
61 #define VIDEO_STATE_WARP_OFF (1 << 14)
62 #define VIDEO_STATE_WARP_ON (1 << 15)
63 #define VIDEO_STATE_WARP (VIDEO_STATE_WARP_OFF | VIDEO_STATE_WARP_ON)
64 #define VIDEO_STATE_WARP2_OFF (1 << 16)
65 #define VIDEO_STATE_WARP2_ON (1 << 17)
66 #define VIDEO_STATE_WARP2 (VIDEO_STATE_WARP_OFF | VIDEO_STATE_WARP_ON)
67 #define VIDEO_STATE_1STEP_OFF (1 << 18)
68 #define VIDEO_STATE_1STEP_ON (1 << 19)
69 #define VIDEO_STATE_1STEP (VIDEO_STATE_1STEP_OFF | VIDEO_STATE_1STEP_ON)
71 #define VIDEO_PRESS_PLAY_ON (1 << 20)
72 #define VIDEO_PRESS_PLAY_OFF (1 << 21)
73 #define VIDEO_PRESS_PLAY (VIDEO_PRESS_PLAY_OFF | VIDEO_PRESS_PLAY_ON)
74 #define VIDEO_PRESS_REC_ON (1 << 22)
75 #define VIDEO_PRESS_REC_OFF (1 << 23)
76 #define VIDEO_PRESS_REC (VIDEO_PRESS_REC_OFF | VIDEO_PRESS_REC_ON)
77 #define VIDEO_PRESS_PAUSE_ON (1 << 24)
78 #define VIDEO_PRESS_PAUSE_OFF (1 << 25)
79 #define VIDEO_PRESS_PAUSE (VIDEO_PRESS_PAUSE_OFF | VIDEO_PRESS_PAUSE_ON)
80 #define VIDEO_PRESS_STOP_ON (1 << 26)
81 #define VIDEO_PRESS_STOP_OFF (1 << 27)
82 #define VIDEO_PRESS_STOP (VIDEO_PRESS_STOP_OFF | VIDEO_PRESS_STOP_ON)
83 #define VIDEO_PRESS_EJECT_ON (1 << 28)
84 #define VIDEO_PRESS_EJECT_OFF (1 << 29)
85 #define VIDEO_PRESS_EJECT (VIDEO_PRESS_EJECT_OFF | VIDEO_PRESS_EJECT_ON)
87 /* tags to draw video display labels or symbols only */
88 /* (negative values to prevent misinterpretation in DrawVideoDisplay(), where
89 the variable "value" is also used for tape length -- better fix this) */
90 #define VIDEO_DISPLAY_DEFAULT 0
91 #define VIDEO_DISPLAY_LABEL_ONLY -1
92 #define VIDEO_DISPLAY_SYMBOL_ONLY -2
95 void DrawVideoDisplay(unsigned long, unsigned long);
96 void DrawCompleteVideoDisplay(void);
98 void TapeDeactivateDisplayOn();
99 void TapeDeactivateDisplayOff(boolean);
101 void TapeStartRecording(void);
102 void TapeHaltRecording(void);
103 void TapeStopRecording(void);
104 void TapeRecordAction(byte *);
105 void TapeTogglePause(boolean);
106 void TapeStartPlaying(void);
107 void TapeStopPlaying(void);
108 byte *TapePlayAction(void);
110 void TapeErase(void);
111 unsigned int GetTapeLength(void);
112 void TapeQuickSave(void);
113 void TapeQuickLoad(void);
114 void InsertSolutionTape(void);
116 void AutoPlayTape(void);
118 void CreateTapeButtons();
119 void FreeTapeButtons();
120 void MapTapeEjectButton();
121 void MapTapeWarpButton();
122 void MapTapeButtons();
123 void UnmapTapeButtons();