File indexing completed on 2024-04-21 04:03:06

0001 /***************************************************************************
0002                                cmapcmdlevelcreate.h
0003                              -------------------
0004     begin                : Wed Mar 6 2002
0005     copyright            : (C) 2002 by Kmud Developer Team
0006     email                : kmud-devel@kmud.de
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #ifndef CMAPCMDLEVELCREATE_H
0019 #define CMAPCMDLEVELCREATE_H
0020 
0021 #include "cmapcommand.h"
0022 
0023 class CMapManager;
0024 class CMapLevel;
0025 class CMapZone;
0026 
0027 /**This class is the command used to create a level
0028   *@author Kmud Developer Team
0029   */
0030 
0031 class CMapCmdLevelCreate : public CMapCommand
0032 {
0033 public: 
0034     CMapCmdLevelCreate(CMapManager *manager,QString name,int index);
0035     ~CMapCmdLevelCreate() override;
0036 
0037     void redo() override;
0038     void undo() override;
0039 
0040     CMapLevel *getLevel(void);
0041 
0042 private:
0043     CMapManager *m_mapManager;
0044     CMapLevel *m_level;
0045     int m_levelID;
0046     int m_index;
0047 };
0048 
0049 #endif