1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-98 Artsoft Entertainment *
8 * phone: ++49 +521 290471 *
9 * email: aeglos@valinor.owl.de *
10 *----------------------------------------------------------*
12 ***********************************************************/
19 #define TAPE_PAUSE_SECONDS_BEFORE_DEATH 3
21 /* some positions in the video tape control window */
22 #define VIDEO_DISPLAY1_XPOS 5
23 #define VIDEO_DISPLAY1_YPOS 5
24 #define VIDEO_DISPLAY2_XPOS 5
25 #define VIDEO_DISPLAY2_YPOS 41
26 #define VIDEO_DISPLAY_XSIZE 90
27 #define VIDEO_DISPLAY_YSIZE 31
28 #define VIDEO_BUTTON_XSIZE 18
29 #define VIDEO_BUTTON_YSIZE 18
30 #define VIDEO_CONTROL_XPOS 5
31 #define VIDEO_CONTROL_YPOS 77
32 #define VIDEO_CONTROL_XSIZE VIDEO_DISPLAY_XSIZE
33 #define VIDEO_CONTROL_YSIZE VIDEO_BUTTON_YSIZE
35 /* values for video tape control */
36 #define VIDEO_STATE_PLAY_OFF (1L << 0)
37 #define VIDEO_STATE_PLAY_ON (1L << 1)
38 #define VIDEO_STATE_PLAY (VIDEO_STATE_PLAY_OFF | VIDEO_STATE_PLAY_ON)
39 #define VIDEO_STATE_REC_OFF (1L << 2)
40 #define VIDEO_STATE_REC_ON (1L << 3)
41 #define VIDEO_STATE_REC (VIDEO_STATE_REC_OFF | VIDEO_STATE_REC_ON)
42 #define VIDEO_STATE_PAUSE_OFF (1L << 4)
43 #define VIDEO_STATE_PAUSE_ON (1L << 5)
44 #define VIDEO_STATE_PAUSE (VIDEO_STATE_PAUSE_OFF | VIDEO_STATE_PAUSE_ON)
45 #define VIDEO_STATE_DATE_OFF (1L << 6)
46 #define VIDEO_STATE_DATE_ON (1L << 7)
47 #define VIDEO_STATE_DATE (VIDEO_STATE_DATE_OFF | VIDEO_STATE_DATE_ON)
48 #define VIDEO_STATE_TIME_OFF (1L << 8)
49 #define VIDEO_STATE_TIME_ON (1L << 9)
50 #define VIDEO_STATE_TIME (VIDEO_STATE_TIME_OFF | VIDEO_STATE_TIME_ON)
51 #define VIDEO_PRESS_PLAY_ON (1L << 10)
52 #define VIDEO_PRESS_PLAY_OFF (1L << 11)
53 #define VIDEO_PRESS_PLAY (VIDEO_PRESS_PLAY_OFF | VIDEO_PRESS_PLAY_ON)
54 #define VIDEO_PRESS_REC_ON (1L << 12)
55 #define VIDEO_PRESS_REC_OFF (1L << 13)
56 #define VIDEO_PRESS_REC (VIDEO_PRESS_REC_OFF | VIDEO_PRESS_REC_ON)
57 #define VIDEO_PRESS_PAUSE_ON (1L << 14)
58 #define VIDEO_PRESS_PAUSE_OFF (1L << 15)
59 #define VIDEO_PRESS_PAUSE (VIDEO_PRESS_PAUSE_OFF | VIDEO_PRESS_PAUSE_ON)
60 #define VIDEO_PRESS_STOP_ON (1L << 16)
61 #define VIDEO_PRESS_STOP_OFF (1L << 17)
62 #define VIDEO_PRESS_STOP (VIDEO_PRESS_STOP_OFF | VIDEO_PRESS_STOP_ON)
63 #define VIDEO_PRESS_EJECT_ON (1L << 18)
64 #define VIDEO_PRESS_EJECT_OFF (1L << 19)
65 #define VIDEO_PRESS_EJECT (VIDEO_PRESS_EJECT_OFF | VIDEO_PRESS_EJECT_ON)
68 #define VIDEO_STATE_FFWD_OFF ((1L << 20) | VIDEO_STATE_PAUSE_OFF)
69 #define VIDEO_STATE_FFWD_ON (1L << 21)
70 #define VIDEO_STATE_FFWD (VIDEO_STATE_FFWD_OFF | VIDEO_STATE_FFWD_ON)
71 #define VIDEO_STATE_PBEND_OFF (1L << 22)
72 #define VIDEO_STATE_PBEND_ON (1L << 23)
73 #define VIDEO_STATE_PBEND (VIDEO_STATE_PBEND_OFF | VIDEO_STATE_PBEND_ON)
75 /* tags to draw video display labels or symbols only */
76 #define VIDEO_DISPLAY_DEFAULT 0
77 #define VIDEO_DISPLAY_LABEL_ONLY 1
78 #define VIDEO_DISPLAY_SYMBOL_ONLY 2
81 void DrawVideoDisplay(unsigned long, unsigned long);
82 void DrawCompleteVideoDisplay(void);
84 void TapeStartRecording(void);
85 void TapeStopRecording(void);
86 void TapeRecordAction(byte *);
87 void TapeRecordDelay(void);
88 void TapeTogglePause(void);
89 void TapeStartPlaying(void);
90 void TapeStopPlaying(void);
91 byte *TapePlayAction(void);
92 boolean TapePlayDelay(void);
95 unsigned int GetTapeLength(void);
97 void CreateTapeButtons();
98 void MapTapeButtons();
99 void UnmapTapeButtons();