00001 /// @cond EXCLUDEDTESTSOURCES 00002 /*************************************************************************** 00003 * The contents of this file are subject to the Mozilla Public * 00004 * License Version 1.1 (the "License"); you may not use this file * 00005 * except in compliance with the License. You may obtain a copy of * 00006 * the License at http://www.mozilla.org/MPL/ * 00007 * * 00008 * Software distributed under the License is distributed on an "AS * 00009 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * 00010 * implied. See the License for the specific language governing * 00011 * rights and limitations under the License. * 00012 * * 00013 * The Original Code is Game Network Framework (GaNeF). * 00014 * * 00015 * The Initial Developers of the Original Code are * 00016 * Lars Langer and Emanuel Greisen * 00017 * Copyright (C) 2005. Lars Langer & Emanuel Greisen * 00018 * All Rights Reserved. * 00019 * * 00020 * Contributor(s): * 00021 * none yet.... * 00022 * * 00023 ***************************************************************************/ 00024 00025 #include <iostream> 00026 #include <cstdlib> 00027 00028 #include "testclientframework.h" 00029 00030 int main(int argc, char *argv[]) 00031 { 00032 std::cout <<"Initializing SDL." << std::endl; 00033 TestClientFramework app; 00034 00035 if(!app.initSDL()) 00036 { 00037 return -1; 00038 } 00039 if(argc > 1) 00040 app.setServerHost(argv[1]); 00041 00042 app.mainLoop(); 00043 } 00044 00045 /// @endcond