src/include/constant.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *  Wormux is a convivial mass murder game.
00003  *  Copyright (C) 2001-2004 Lawrence Azzoug.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00018  ******************************************************************************
00019  *  Constants...
00020  *****************************************************************************/
00021 
00022 #ifndef CONSTANT_H
00023 #define CONSTANT_H
00024 #include "base.h"
00025 #include <string>
00026 #include <vector>
00027 #include "tool/point.h"
00028 
00029 class Constants
00030 {
00031 public:
00032   // Version number of Wormux
00033   static const std::string VERSION;
00034   
00035   // Env variables name to override previous values
00036   static const std::string ENV_DATADIR;
00037   static const std::string ENV_LOCALEDIR;
00038   static const std::string ENV_FONT_PATH;
00039   
00040   // Nombre de boucles maximum pour le test ...
00041   static const uint NBR_BCL_MAX_EST_VIDE; // Un objet est dans le vide ?
00042   
00043   // Authors list
00044   static std::vector<std::string> AUTHORS;
00045   
00046   // Web site address and email
00047   static const std::string WEB_SITE;
00048   static const std::string EMAIL;
00049   
00050   // Dimensions min/max du terrain (en pixel)
00051   static const Point2i MAP_MIN_SIZE;
00052   static const int MAP_MAX_SIZE;
00053   
00054   // Hauteur (en pixel) minimale libre pour que le terrain
00055   // soit qualifié " d'ouvert "
00056   static const uint HAUT_MIN_TERRAIN_OUVERT;
00057 
00058   static Constants * GetInstance();
00059   
00060 private:
00061   Constants();
00062 
00063   static Constants * singleton;
00064 };
00065 
00066 #endif

Generated on Mon Jan 1 13:10:57 2007 for Wormux by  doxygen 1.4.7