/************************************************************************ $Id: columbusserverinitstate.h,v 1.2 2005/08/08 11:32:45 krolfy Exp $ RTB - Team Framework: Framework for RealTime Battle robots to communicate efficiently in a team Copyright (C) 2004 The RTB- Team Framework Group: http://rtb-team.sourceforge.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Log: columbusserverinitstate.h,v $ Revision 1.2 2005/08/08 11:32:45 krolfy Added three Columbus bots (crash with exception) Revision 1.1 2005/07/29 10:59:51 krolfy Columbus server side ready but untested **************************************************************************/ #ifndef COLUMBUSSERVERINITSTATE_H #define COLUMBUSSERVERINITSTATE_H #include "columbusserverbasestate.h" #include "columbusnamespace.h" #include /** * Namespace Columbus */ namespace Columbus { using Strategies::ServerState; using Exceptions::StrategyException; using std::string; using std::bad_exception; using Parser::object_type; using Parser::warning_type; using GameControl::ServerCoordinator; using std::ostringstream; class ColumbusServerInitState: public ColumbusServerBaseState { public: /** * Intended as a frontend for PotentialMap::navigationHint */ virtual void sendNavigationServerTips() throw(bad_exception); /** * Defines what to do with an enemy found. * @param pos the position of the enemy */ virtual void handleEnemy(const General::Position& pos) throw(bad_exception); /** * Make footprints, also see PotentialMap::makeFootPrint. * A fleeing Robot will not make footprints. * @param pos where to make the footprint * @param speed the depth of ther footprint shall be be dependent on the robot's movement */ virtual void makeFootPrint(const General::Position& pos,const General::Position& speed) throw(bad_exception); ColumbusServerInitState(ServerCoordinator* c,ColumbusInternalServerSpecificRepository* columbusssp, ColumbusSharedServerSpecificRepository* columbussharedssp) throw (StrategyException,bad_exception); virtual ~ColumbusServerInitState () throw(); /** * This method is called when the RTB message "RobotsLeft [num]" occurs. This message is sent at the beginning of the game and after a robot has been killed. * @param num The number of remaining robots */ virtual void receiveRTBMessageRobotsLeft(int num) throw (StrategyException, bad_exception); private: ColumbusSharedServerSpecificRepository* _sssp; ColumbusInternalServerSpecificRepository* _issp; int _counter,_numBots; }; } #endif