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
|
/* $Id: country.h,v 1.2 2002/09/09 03:52:06 riq Exp $ */
/* Tenes Empanadas Graciela
*
* Copyright (C) 2000 Ricardo Quesada
*
* Author: Ricardo Calixto Quesada <rquesada@core-sdi.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.
*/
/**
* @file country.h
*/
#ifndef __TEG_COUNTRY_H
#define __TEG_COUNTRY_H
#include "all.h"
#define COUNTRYNAME_MAX_LEN 50
#define COUNTRIES_CANT 50
typedef struct _country {
LIST_ENTRY next;
int id; /**< numero de country */
char *name; /**< name del country*/
int numjug; /**< numjug */
int ejercitos; /**< cant de ejercitos */
int ejer_reagrupe; /**< cant de ejercitos pasados en reagru */
CONTINENTE continente; /**< continente al que pertenece */
TARJETA tarjeta; /**< tipo de dibujo de tarjeta */
int selected; /**< util para la gui. Dice si esta seleccionado */
void *private; /**< reserved for gui */
} COUNTRY, *PCOUNTRY;
enum {
COUNTRY_SELECT_NONE = 0,
COUNTRY_SELECT_FICHAS_IN = 1 << 0,
COUNTRY_SELECT_FICHAS_OUT = 1 << 1,
COUNTRY_SELECT_ATTACK_ENTER = 1 << 2,
COUNTRY_SELECT_ATTACK = 1 << 3,
COUNTRY_SELECT_REGROUP_ENTER = 1 << 4,
COUNTRY_SELECT_REGROUP = 1 << 5,
COUNTRY_SELECT_ATTACK_SRC = 1 << 6,
COUNTRY_SELECT_ATTACK_DST = 1 << 7,
};
/*
* Funciones, variables exportadas
*/
extern COUNTRY g_countries[];
BOOLEAN countries_eslimitrofe( int a, int b);
int countries_cantlimitrofes( int p );
void countries_initcountry( PCOUNTRY p );
void countries_init();
BOOLEAN country_libre( int i );
/**! returns the name of 'country' */
char * countries_get_name( int country );
#endif /* __TEG_COUNTRY_H */
|