X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.h;h=6a5107cb5a849fecd6d4c55ffab3804fd4dc0495;hb=61c3da024802ecc0268bab42d7499fc0346e4fd3;hp=396d298cb12487b2c76c5bc74f94df7a1ea6399f;hpb=7d07216e7f18ff03a650f53e0bfb372b07782ca2;p=rocksndiamonds.git diff --git a/src/tape.h b/src/tape.h index 396d298c..6a5107cb 100644 --- a/src/tape.h +++ b/src/tape.h @@ -102,6 +102,42 @@ struct TapeButtonInfo struct Rect play; }; +struct TapeSymbolInfo +{ + struct Rect eject; + struct Rect stop; + struct Rect pause; + struct Rect record; + struct Rect play; + struct Rect fast_forward; + struct Rect warp_forward; + struct Rect warp_forward_blind; + struct Rect pause_before_end; + struct Rect single_step; +}; + +struct TapeLabelInfo +{ + struct Rect eject; + struct Rect stop; + struct Rect pause; + struct Rect record; + struct Rect play; + struct Rect fast_forward; + struct Rect warp_forward; + struct Rect warp_forward_blind; + struct Rect pause_before_end; + struct Rect single_step; + struct Rect date; + struct Rect time; +}; + +struct TapeTextInfo +{ + struct TextPosInfo date; + struct TextPosInfo time; +}; + struct TapeInfo { int file_version; /* file format version the tape is stored with */ @@ -110,11 +146,11 @@ struct TapeInfo char *level_identifier; int level_nr; - unsigned long random_seed; - unsigned long date; - unsigned long counter; - unsigned long length; - unsigned long length_seconds; + unsigned int random_seed; + unsigned int date; + unsigned int counter; + unsigned int length; + unsigned int length_seconds; unsigned int delay_played; boolean pause_before_death; boolean recording, playing, pausing; @@ -138,12 +174,15 @@ struct TapeInfo } pos[MAX_TAPE_LEN]; struct TapeButtonInfo button; + struct TapeSymbolInfo symbol; + struct TapeLabelInfo label; + struct TapeTextInfo text; boolean no_valid_file; /* set when tape file missing or invalid */ }; -void DrawVideoDisplay(unsigned long, unsigned long); +void DrawVideoDisplay(unsigned int, unsigned int); void DrawCompleteVideoDisplay(void); void TapeDeactivateDisplayOn(); @@ -152,7 +191,7 @@ void TapeDeactivateDisplayOff(boolean); void TapeSetDateFromEpochSeconds(time_t); void TapeSetDateFromNow(); -void TapeStartRecording(long); +void TapeStartRecording(int); void TapeHaltRecording(void); void TapeStopRecording(void); void TapeRecordAction(byte *);