00001 /* 00002 00003 ************************************************************************* 00004 00005 ArmageTron -- Just another Tron Lightcycle Game in 3D. 00006 Copyright (C) 2005 by Daniel Harple 00007 and the AA DevTeam (see the file AUTHORS(.txt) in the main source directory) 00008 00009 ************************************************************************** 00010 00011 This program is free software; you can redistribute it and/or 00012 modify it under the terms of the GNU General Public License 00013 as published by the Free Software Foundation; either version 2 00014 of the License, or (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00024 00025 *************************************************************************** 00026 00027 */ 00028 00029 #ifndef ArmageTron_gCommandLineJumpStart_H 00030 #define ArmageTron_gCommandLineJumpStart_H 00031 00032 #include "tCommandLine.h" 00033 #include "tString.h" 00034 #include "gServerFavorites.h" 00035 #include "nServerInfo.h" 00036 #include "aa_config.h" 00037 00038 // ***************************************************************************** 00039 // * 00040 // * gCommandLineJumpStart 00041 // * 00042 // ***************************************************************************** 00048 // ***************************************************************************** 00049 00050 class gCommandLineJumpStartAnalyzer : public tCommandLineAnalyzer 00051 { 00052 public: 00053 bool ShouldConnect() { return _shouldConnect; } 00054 void Connect(); 00055 private: 00056 bool _shouldConnect; 00057 tString _raw; 00058 virtual bool DoAnalyze( tCommandLineParser & parser ); 00059 virtual void DoHelp( std::ostream & s ); 00060 }; 00061 00062 void ExtractConnectionInformation( tString &raw, tString &servername, tString &port ); 00063 00064 #ifdef MACOSX 00065 // nemo TOFIX: I can not include "gGame.h" in AAURLHandler, because one of the file 00066 // it includes conflicts with objective-c, most notabley using +id+ as a variable name 00067 void AAURLHandlerConnect( nServerInfoBase *server ); 00068 #endif 00069 00070 #endif // ArmageTron_gCommandLineJumpStart_H