Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

FSServer.h

00001 /*
00002 Copyright 2003 - 2005 Elliott Kleinrock, Dan Neely, Kurt W. Over, Damon Domjan
00003 
00004 This file is part of FreeStars, a free clone of the Stars! game.
00005 
00006 FreeStars is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 FreeStars is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with FreeStars; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 The full GPL Copyright notice should be in the file COPYING.txt
00021 
00022 Contact:
00023 Email Elliott at 9jm0tjj02@sneakemail.com
00024 */
00025 
00026 // Compatability stuff for Linux
00027 #ifndef WIN32
00028 #define stricmp strcasecmp
00029 #define strnicmp strncasecmp
00030         // for the gnu build system
00031         #ifdef HAVE_CONFIG_H
00032         #include <config.h>
00033         #endif
00034 #endif 
00035 
00036 #ifdef WIN32
00037 // stuff for windows
00038 #pragma warning(disable : 4786)         // identifier was truncated to '255' characters in the debug information
00039 #pragma warning(disable : 4514)         // unreferenced inline function has been removed
00040 #pragma warning(disable : 4710)         // function '' not inlined
00041 #pragma warning(disable : 4512)         // assignment operator could not be generated
00042 
00043 // memory leak debugging
00044 #ifdef _DEBUG
00045 #include <crtdbg.h>
00046 #define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
00047 #else
00048 #define DEBUG_NEW new
00049 #endif
00050 #endif // WIN32
00051 
00052 
00053 #ifdef WIN32 // stuff for windows
00054 #pragma warning(push, 3)
00055 #endif // WIN32
00056 
00057 // STL stuff
00058 // two leaks in here, presumably cleaned up on termination
00059 #include <iostream>
00060 #include <deque>
00061 #include <string>
00062 #include <algorithm>
00063 #include <numeric>
00064 using namespace std;
00065 
00066 // Standard C++ stuff
00067 #include "math.h"
00068 #include "assert.h"
00069 
00070 // using tinyxml
00071 #if !defined TIXML_USE_STL
00072 #define TIXML_USE_STL
00073 #endif
00074 #include "../tinyxml/tinyxml.h"
00075 
00076 #ifdef WIN32 // stuff for windows
00077 #pragma warning(pop)
00078 #endif // WIN32
00079 #include "TinyXmlPlus.h"
00080 
00081 extern "C" {
00082         //  Mersenne Twister for random numbers
00083         #include "../MersenneTwister/mt19937ar.h"
00084 }
00085 // _MIN is defined for MS because they have a prior defination of min that causes problems
00086 #if defined(_MIN)
00087 // redefine min to use _MIN
00088 #undef min
00089 #define min _MIN
00090 #undef max
00091 #define max _MAX
00092 #endif
00093 
00094 #ifdef WIN32 // stuff for windows
00095 #pragma warning (disable : 4018)        // signed/unsigned mismatch
00096 #endif
00097 
00098 
00099 inline long Random(long lmax)   { return genrand_int32() % lmax; }
00100 inline long Random(long lmin, long lmax)        { return genrand_int32() % (lmax - lmin) + lmin; }
00101 inline bool Randodd(double odds)        { return genrand_real2() < odds; }
00102 
00103 // FreeStars Stuff
00104 #include "FSTypes.h"
00105 
00106 #include "Rules.h"
00107 #include "BattlePlan.h"
00108 #include "Ship.h"
00109 #include "Component.h"
00110 #include "Slot.h"
00111 #include "WayOrder.h"
00112 #include "Race.h"
00113 #include "Player.h"
00114 #include "Location.h"
00115 #include "CargoHolder.h"
00116 #include "Fleet.h"
00117 #include "Invasion.h"
00118 #include "ProdOrder.h"
00119 #include "Planet.h"
00120 #include "Salvage.h"
00121 #include "Galaxy.h"
00122 #include "Game.h"
00123 #include "Message.h"
00124 #include "MineField.h"
00125 

Generated on Mon Aug 8 21:33:43 2005 for Freestars by  doxygen 1.4.2-20050421