File indexing completed on 2024-04-14 04:00:17

0001 /***************************************************************************
0002                                cmapcmddeletelevel.h
0003                              -------------------
0004     begin                : Mon Mar 4 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 CMAPCMDLEVELDELETE_H
0019 #define CMAPCMDLEVELDELETE_H
0020 
0021 #include <qstring.h>
0022 
0023 #include "cmapcommand.h"
0024 
0025 class CMapManager;
0026 class CMapLevel;
0027 
0028 /**This class is the command used to delete a level
0029   *@author Kmud Developer Team
0030   */
0031 
0032 class CMapCmdLevelDelete : public CMapCommand
0033 {
0034 public: 
0035     CMapCmdLevelDelete(CMapManager *manager,QString name, CMapLevel *level);
0036     ~CMapCmdLevelDelete() override;
0037 
0038     void redo() override;
0039     void undo() override;
0040 
0041 private:
0042     int m_index;
0043     int m_levelID;
0044     CMapManager *m_mapManager;
0045 };
0046 
0047 #endif