central/central.h

Go to the documentation of this file.
00001 /* $Id: central.h jjs $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License version 2 or any
00008    later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 #ifndef __CENTRAL_H
00017 #define __CENTRAL_H
00018 
00024 class central {
00025   private:
00026     time_t timestamp;
00027     long game_number;
00028     user *current_user;
00029     communicate comm;
00030     std::string game_dir;
00031     std::string config_file;
00032   public:
00033     central();
00034     time_t current_time;
00035     void config_handler(channel *ch);
00036     void save_all(std::string config_file);
00037     void tls_handler(channel *ch);
00038     void change_game(channel *ch);
00039     void client_handler(channel *ch);
00040     std::string rand_session();
00041     void do_fork(std::string file);
00042     void chat_session(std::string session);
00043     void config(); 
00044     void log_level(std::string level);
00045     void log_file(std::string logfile);
00046     void game_directory(std::string dir);
00047     void main_loop();
00048 };
00049 
00050 #endif // __CENTRAL_H


Generated on Tue Jan 1 17:30:00 2008 for central/central.h Source File by  doxygen   Visit the project page on SourceForge.net Logo