File: protocol.h

package info (click to toggle)
teg 0.9.2-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,232 kB
  • ctags: 2,372
  • sloc: ansic: 18,999; sh: 9,273; makefile: 589; yacc: 318; xml: 160
file content (98 lines) | stat: -rw-r--r-- 3,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*	$Id: protocol.h,v 1.30 2001/12/21 22:10:01 riq Exp $	*/
/* Tenes Empanadas Graciela
 *
 * Copyright (C) 2000 Ricardo Quesada
 *
 * Author: Ricardo Calixto Quesada <riq@corest.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; only version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 */
/*
 *	Definicion del protocolo
 */

#ifndef __TEG_PROTOCOL_H
#define __TEG_PROTOCOL_H

#define PROTOCOL_HIVER	5
#define PROTOCOL_LOVER	0
#define PROT_MAX_LEN	(5000)

/* Poner todo en minuscula */

/* tokens */
#define TOKEN_CVERSION		"client_version"
#define TOKEN_DISCON		"disconnect"
#define TOKEN_EXIT		"exit"
#define TOKEN_GAMEOVER		"game_over"
#define TOKEN_HELP		"help"
#define TOKEN_LOST		"loser"
#define TOKEN_MESSAGE		"msg"
#define TOKEN_PLAYERID		"player_id"
#define TOKEN_RECONNECT		"reconnect"
#define TOKEN_NEWPLAYER		"newplayer"
#define TOKEN_PVERSION		"protocol_version"
#define TOKEN_QUMM		"quiero_un_mundo_mejor"
#define TOKEN_REM		"*"
#define TOKEN_ROBOT		"quiero_jugar_con_un_robot"
#define TOKEN_SCORES		"scores"
#define TOKEN_STATS		"stats"
#define TOKEN_SERVERFULL	"el_servidor_esta_lleno"
#define TOKEN_GAMEINPROGRESS	"game_in_progress"
#define TOKEN_SVERSION		"server_version"
#define TOKEN_ALONE		"solo_a_ningun_lado"
#define TOKEN_START		"start"
#define TOKEN_STATUS		"status"
#define TOKEN_TEST		"eva_test"
#define	TOKEN_TURNO		"turno"
#define	TOKEN_WAIT		"wait"
#define	TOKEN_WINNER		"winner"
#define TOKEN_ERROR		"error"
#define TOKEN_OK		"ok"
#define TOKEN_PAISES		"paises"
#define TOKEN_FICHAS		"fichas"
#define TOKEN_FICHAS2		"fichas2"
#define TOKEN_FICHASC		"fichasc"
#define TOKEN_FICHAS3		"fichas3"
#define TOKEN_ATAQUE		"ataque"
#define TOKEN_TROPAS		"tropas"
#define TOKEN_PAIS		"pais"
#define TOKEN_REAGRUPE		"reagrupe"
#define TOKEN_TARJETA		"tarjeta"
#define TOKEN_DADOS		"dados"
#define TOKEN_CANJE		"canje"
#define TOKEN_EJER2		"ejer2"
#define TOKEN_MODALIDAD		"modalidad"
#define TOKEN_OBJETIVO		"mission"
#define TOKEN_SET		"set"
#define TOKEN_VIEW		"view"
#define TOKEN_COLOR		"color"
#define TOKEN_SAVE		"save"
#define TOKEN_LOQUE		"que_tengo_que_hacer"
#define TOKEN_ECHO		"echo"
#define TOKEN_GGZ		"avoding_perdig_effect"
#define TOKEN_PACTO_REQUEST	"pacto_request"
#define TOKEN_PACTO_REPLY	"pacto_reply"
#define TOKEN_SURRENDER		"soy_cobarde"
#define TOKEN_KICK		"kick"
#define TOKEN_ENUM_CARDS	"enum_cards"

/* options */
#define OPTION_CONQWORLD	"conquer_world"
#define OPTION_ARMIES		"armies"
#define OPTION_SEED		"seed"
#define OPTION_HELP		"help"
#define OPTION_CMISSION		"common_mission"

#endif /* __TEG_PROTOCOL_H */