X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fleveleditor.h;h=33b067769f7b28df79942c5fdbd72c022d5642bd;hb=a21fb5079827ea71ff263a6ad3311b89976b445e;hp=5fef8801b26a9a62663c4e5062c8b9549a6bab28;hpb=3b5cd0c1ef515b2c510f7378819fab398e2be9d2;p=supertux.git diff --git a/src/leveleditor.h b/src/leveleditor.h index 5fef8801b..33b067769 100644 --- a/src/leveleditor.h +++ b/src/leveleditor.h @@ -1,24 +1,26 @@ -/*************************************************************************** - leveleditor.h - built'in level editor - ------------------- - begin : June, 23 2004 - copyright : (C) 2004 by Ricardo Cruz - email : rick2@aeiou.pt - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - +// $Id$ +// +// SuperTux +// Copyright (C) 2005 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. #ifndef SUPERTUX_LEVELEDITOR_H #define SUPERTUX_LEVELEDITOR_H -#include "SDL.h" +#if 0 #include #include @@ -32,12 +34,12 @@ using namespace SuperTux; namespace SuperTux { class ButtonGroup; -class Menu; -class Surface; } +class Menu; class Sector; class TileMap; +class Surface; enum { MN_ID_RETURN, @@ -91,8 +93,7 @@ private: void load_level_subset(std::string filename); void load_level(std::string filename); void load_level(int nb); - void load_sector(std::string name); - void load_sector(Sector* sector); + void load_sector(size_t num); void save_level(); void test_level(); @@ -108,6 +109,7 @@ private: Level* level; std::string level_filename; + size_t sectornum; // number of current sector Sector* sector; // current sector TileMap *solids, *foregrounds, *backgrounds; std::string sector_name; @@ -122,14 +124,14 @@ private: Menu* settings_menu; bool left_button, middle_button, mouse_moved; + int mouse_x, mouse_y; bool done; bool show_grid; Vector scroll; float zoom; - SDL_Event event; - Timer2 level_name_timer; + Timer level_name_timer; Surface *img_background_bt, *img_foreground_bt, *img_interactive_bt; Surface *img_save_level_bt, *img_setup_level_bt, *img_test_level_bt; @@ -149,3 +151,5 @@ private: }; #endif + +#endif