/******************************************************************************
 *  Wormux, a free clone of the game Worms from Team17.
 *  Copyright (C) 2001-2004 Lawrence Azzoug.
 *
 *  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; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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
 ******************************************************************************
 * Diverses constantes.
 *****************************************************************************/

#include "constant.h"
//-----------------------------------------------------------------------------
namespace Wormux {
//-----------------------------------------------------------------------------

#ifndef INSTALL_DATADIR
#  define INSTALL_DATADIR "data/"
#endif

// Répertoire d'installation (avec slash)
const std::string DEFAULT_DATADIR(INSTALL_DATADIR);

//-----------------------------------------------------------------------------

#ifndef INSTALL_LOCALEDIR
#  define INSTALL_LOCALEDIR "locale/"
#endif

// Répertoire d'installation (avec slash)
const std::string DEFAULT_LOCALEDIR(INSTALL_LOCALEDIR);

//-----------------------------------------------------------------------------

// Nombre de boucles maximum pour le test ...
const uint NBR_BCL_MAX_EST_VIDE = 200; // Un objet est dans le vide ?

// Taille (et position) de l'image de fond (et du plateau de jeu)
uint FOND_X = 0;
uint FOND_Y = 0;

std::vector<std::string> AUTHORS;

const std::string WEB_SITE("http://www.wormux.org");

//-----------------------------------------------------------------------------

// Dimensions min/max du terrain (en pixel)
const uint LARG_MIN_TERRAIN = 100;
const uint HAUT_MIN_TERRAIN = 200;
const uint TAILLE_MAX_TERRAIN = 4000*4000;

// Taille des cellules du terrain
const uint LARG_CELLULE_TERRAIN = 300;
const uint HAUT_CELLULE_TERRAIN = 300;

// Hauteur minimale libre pour que le terrain soit qualifié " d'ouvert "
const uint HAUT_MIN_TERRAIN_OUVERT = 40;

// Distance minimale entre les vers lors de l'initialisation d'une partie
const double DST_MIN_ENTRE_VERS = 200.0;

//-----------------------------------------------------------------------------

void InitCst()
{
  AUTHORS.push_back ("Lawrence AZZOUG");
  AUTHORS.push_back ("Laurent DEFERT SIMONNEAU");
  AUTHORS.push_back ("Matthieu FERTRE");
  AUTHORS.push_back ("Renaud LOTTIAUX");
  AUTHORS.push_back ("Victor STINNER");
}

//-----------------------------------------------------------------------------
}
