convert line ends
[canaan.git] / prj / cam / src / shock / shkchat.h
blobae296138d6743b6413a7588ec329682e0718b4e6
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/shock/shkchat.h,v 1.3 2000/01/29 13:40:34 adurant Exp $
7 //
8 // The multiplayer chat system. This module hides the gory details of
9 // machine-to-machine chat behind a fairly small interface.
11 #pragma once
13 #ifndef __SHKCHAT_H
14 #define __SHKCHAT_H
16 // Prepare the chat system. The dimensions are the location and size of the
17 // chat input area.
18 EXTERN void ShockChatInit(int x, int y, int width, int height);
19 // Shut down the chat system.
20 EXTERN void ShockChatTerm();
22 // Prep and shutdown the networking for chat. Sadly, this has to be done
23 // at a different time than the graphics -- the graphics stuff comes and
24 // goes whenever you leave game mode, but the networking must be
25 // persistent, and must be set up very early in the game.
26 EXTERN void ShockChatNetInit();
27 EXTERN void ShockChatNetTerm();
29 // Get a chat message from the user, and send it off to the other players
30 // if it completes.
31 EXTERN void ShockChatGetInput(char *prefix);
33 // Returns TRUE iff we are in the middle of getting input from the user.
34 EXTERN BOOL ShockChatGettingInput();
36 // Renders the current state of the chat input area. Should be called once
37 // per frame.
38 EXTERN void ShockChatDrawInput();
40 #endif // !__SHKCHAT_H