src/include/constant.cpp

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 #include "constant.h"
00023 
00024 const std::string Constants::VERSION = PACKAGE_VERSION;
00025 
00026 const std::string Constants::ENV_DATADIR = "WORMUX_DATADIR";
00027 const std::string Constants::ENV_LOCALEDIR = "WORMUX_LOCALEDIR";
00028 const std::string Constants::ENV_FONT_PATH = "WORMUX_FONT_PATH";
00029 
00030 std::vector<std::string> Constants::AUTHORS;
00031 
00032 const std::string Constants::WEB_SITE = "http://www.wormux.org";
00033 const std::string Constants::EMAIL = "wormux-dev .AT. gna .DOT. org";
00034 
00035 // Size min/max of the map (pixels)
00036 const Point2i Constants::MAP_MIN_SIZE = Point2i(100, 200);
00037 const int Constants::MAP_MAX_SIZE = 4000*4000;
00038 
00039 Constants * Constants::singleton = NULL;
00040 
00041 Constants::Constants()
00042 {
00043   AUTHORS.push_back ("Lawrence AZZOUG");
00044   AUTHORS.push_back ("Anthony CARRE");
00045   AUTHORS.push_back ("Laurent DEFERT SIMONNEAU");
00046   AUTHORS.push_back ("Jean-Christophe DUBERGA");
00047   AUTHORS.push_back ("Matthieu FERTRE");
00048   AUTHORS.push_back ("Sebastien GONZALVE");
00049   AUTHORS.push_back ("Reiner HERRMANN");
00050   AUTHORS.push_back ("Renaud LOTTIAUX");
00051   AUTHORS.push_back ("Yannig PERRE");
00052   AUTHORS.push_back ("Olivie SERRES");
00053   AUTHORS.push_back ("Victor STINNER");
00054 }
00055 
00056 Constants * Constants::GetInstance() {
00057   if (singleton == NULL) {
00058     singleton = new Constants();
00059   }
00060   return singleton;
00061 }

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