File indexing completed on 2024-04-21 04:04:44

0001 /* This file is part of KsirK.
0002    Copyright (C) 2005-2007 Gaƫl de Chalendar <kleag@free.fr>
0003 
0004    KsirK is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation, either version 2
0007    of the License, or (at your option) any later version.
0008 
0009    This program is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012    General Public License for more details.
0013 
0014    You should have received a copy of the GNU General Public License
0015    along with this program; if not, write to the Free Software
0016    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0017    02110-1301, USA
0018 */
0019 
0020 /* begin                : Mon Feb 07 2005 */
0021 
0022 #ifndef KSIRK_SAVELOAD_KSIRKGAMEXMLLOADER_H
0023 #define KSIRK_SAVELOAD_KSIRKGAMEXMLLOADER_H
0024 
0025 #include "KsirkGlobalDefinitions.h"
0026 #include "kgamewin.h"
0027 #include "GameLogic/player.h"
0028 
0029 #include <qxml.h>
0030 #include <QList>
0031 
0032 namespace Ksirk
0033 {
0034 namespace SaveLoad
0035 {
0036 
0037 /** 
0038   * Sets up the KsirK skin data file SAX parser and runs it
0039   * @author Gael de Chalendar (aka Kleag) 
0040   */
0041 class GameXmlLoader
0042 {
0043 public:
0044   /**
0045     * Constructor
0046     * @param fileName The name of the file to read.
0047     * @param game The game to initialize with the file's data
0048     * @param waitedPlayers The list of players definitions whose connection 
0049     * from the network will be waited for.
0050     */
0051   GameXmlLoader(const QString& fileName, KGameWindow& game, 
0052         QList<GameLogic::PlayerMatrix>& waitedPlayers);
0053   
0054 private:
0055   QString m_onuFile;
0056 };
0057 
0058 
0059 } // closing namespace SaveLoad
0060 } // closing namespace Ksirk
0061 
0062 
0063 #endif // KSIRK_SAVELOAD_KSIRKGAMEXMLLOADER_H
0064