MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // player/comm.c-- basic player communiction commands |
| 4 | // |
| 5 | // $Id: comm.c 6918 2008-08-07 21:13:16Z Zesstra $ |
| 6 | |
| 7 | #pragma strong_types |
| 8 | #pragma save_types |
| 9 | #pragma no_clone |
| 10 | #pragma pedantic |
| 11 | #pragma range_check |
| 12 | |
| 13 | struct msg_s { |
| 14 | string msg; // Inhalt der Nachricht |
| 15 | int type; // Messagetyp fuer ReceiveMsg |
| 16 | string action; // Messageaction fuer ReceiveMsg |
| 17 | string prefix; // Einrueckung der Nachricht bei Darstellung (msg_prefix) |
| 18 | string sendername;// Ursprung der Nachricht |
| 19 | }; |
| 20 | |
| 21 | struct stored_msg_s (msg_s) { |
| 22 | int timestamp; // Zeitstempel der Nachricht |
| 23 | }; |
| 24 | |
| 25 | struct msg_buffer_s { |
| 26 | //struct msg_s *buf; |
| 27 | mixed *buf; |
| 28 | int index; |
| 29 | }; |
| 30 | |
| 31 | struct chat_s { |
| 32 | string uid; // UID des Gespraechspartners |
| 33 | int time_first_msg; // Zeit der ersten Nachricht |
| 34 | int time_last_msg; // Zeit der letzen Nachricht |
| 35 | int sentcount; // Anzahl gesendeter Nachrichten |
| 36 | int recvcount; // Anzahl empfangener Nachrichten |
| 37 | mixed msgbuf; // Array von msg_s (Art Ringpuffer) |
| 38 | int ptr; // Pointer auf die naechste zu ueberschreibende msg_s |
| 39 | // in msgbuf |
| 40 | }; |
| 41 | |