1 /* 2 Message 3 Handle encoding/decoding infocom text messages 4 JBS 15 June 1994 5 */ 6 7 #ifndef _MESSAGE_ 8 9 #define _MESSAGE_ 10 11 #include "types.h" 12 13 #define STD_CHARS_PER_WORD 6 14 #define STD_ENCODED_SIZE (STD_CHARS_PER_WORD/3) 15 #define PLUS_CHARS_PER_WORD 9 16 #define PLUS_ENCODED_SIZE (PLUS_CHARS_PER_WORD/3) 17 18 void init_message(void); 19 void print_coded(word *, word *); 20 void encode(byte *, word[]); 21 22 #endif 23