ArenaController.h

Go to the documentation of this file.
00001 /*
00002 RealTimeBattle, a robot programming game for Unix
00003 Copyright (C) 1998-2000  Erik Ouchterlony and Ragnar Ouchterlony
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 Foundation,
00017 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef __ARENA_CONTROLLER__
00021 #define __ARENA_CONTROLLER__
00022 
00023 #include "ArenaBase.h"
00024 
00025 class String;
00026 
00027 class ArenaController
00028 {
00029 public:
00030   ArenaController();
00031   ~ArenaController();
00032   
00033   void start_realtime_arena();
00034   void start_replay_arena();
00035 
00036   void close_arena();
00037 
00038   ArenaBase* get_the_arena() { return my_arena; }
00039   bool is_started() { return started; }
00040   bool is_realtime() { return realtime; }
00041 
00042 private:
00043   
00044   bool started;
00045   bool realtime;
00046 
00047   ArenaBase* my_arena;
00048 
00049 public: // global names etc.
00050   String option_filename;
00051   String statistics_filename;
00052   String log_filename;
00053   String tournament_filename;
00054   String message_filename;
00055   String replay_filename;
00056 
00057   int game_mode;
00058   int debug_level;
00059   bool auto_start_and_end;
00060 };
00061 
00062 #endif 

Generated on Fri Oct 15 15:47:35 2004 for Real Time Battle by  doxygen 1.3.9.1