Freeciv-3.2: /fast/freeciv/nightly/S3_2/common/chat.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
chat.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__CHAT_H
14#define FC__CHAT_H
15
16/* Definitions related to interpreting chat messages.
17 * Behaviour generally can't be changed at whim because client and
18 * server are assumed to agree on these details. */
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/* Special characters in chatlines. */
25
26/* The character to mark chatlines as server commands */
27/* FIXME this is still hard-coded in a lot of places */
28#define SERVER_COMMAND_PREFIX '/'
29#define SERVER_COMMAND_PREFIX_STR "/"
30#define CHAT_ALLIES_PREFIX '.'
31#define CHAT_DIRECT_PREFIX ':'
32
33#ifdef __cplusplus
34}
35#endif /* __cplusplus */
36
37#endif /* FC__CHAT_H */